How to deploy a jsp file on a Jetty web server?

I created a simple JSP file that I want to deploy in Jetty 7.2. Jetty works, and I see the default webpage at http://localhost:8080/ . I started Jetty with the java -jar start.jar .

I saved my simple JSP file jsp_test.jsp to <my_jetty_directory>/webapps/jsp_test.jsp and then tried to access this file at http://localhost:8080/jsp_test.jsp and http://localhost:8080/webapps/jsp_test.jsp , but none of them work.

Is there anything else I need to do? Where in the Jetty file structure should I place my JSP file?

If you know a useful tutorial, I would be grateful. I did not find the good ones.

+2
source share
1 answer

You should put it in a folder inside webapps:

webapps/myapphttp://localhost:8080/myapp/test.jsp

+2
source

All Articles