I have added a dynamic web project in Eclipse and can access the static HTML files and resources in the WebContent folder. I have placed my JSP files in WebConent\WEB-INF
This works fine: "http://localhost:8080/HelloWorld/index.htm"
This tells me the resource is not found: "http://localhost:8080/HelloWorld/Logon.jsp"
I have not defined any JSP servlet mappings. I have the default web.xml which only has the welcome files in it. I right click the project name and choose Debug On Server to run the app.
Update: I've had some success. I added the following to the Eclipse project's web.xml (in the WebContent\WEB-INF folder). The Test.jsp works as "http://localhost:8080/HelloWorld/Test.jsp" only when Test.jsp is in the WebContent folder and not when its in the WebContent\WEB-INF folder.
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>logVerbosityLevel</param-name>
<param-value>WARNING</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>