Eclipse 3.0.2, windowsXP
myEclipse 3.8.4
Appserver Resin 3.0.10
My web app project structure is:
WebPrj
—htdocs
——Forward.jsp
—src
——com
———-test
————-servlet
—————–TestServlet.java
When I deploy, classes get deployed to c:\resin\deploy\WebPrj\WEB_INF folder, and htdocs goes to c:\resin\deploy\WebPrj\htdocs.
The problem is that in servelet I redirect to Forward.jsp and get an IOException that this file is not found. Also, if I hit in the browser http://localhost:8080/WebPrj/, i get a page with a link to htdocs.
My questions are
1. how do I configure that requests to http://localhost:8080/*.jsp to go http://localhost:8080/WebPrj/htdocs/*.jsp
2. redirects from sevlet to Forward.jsp goes to http://localhost:8080/WebPrj/htdocs/Forward.jsp.
3. Can I do this configuration so that it’s app server independant? Like in web.xml as opposed to resin.conf.
I tried some settings in resin.conf with <web-app> tag, but was unsuccessful.
Thank you.