File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet calling a JSP

 
trupti nigam
Ranch Hand
Posts: 623
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a servlet which when the user clicks on the submit button loads the JSP page. I have a directory named myDevelopment and all the servets are kept in a "C:\tomcat\webapps\myDevelopment\WEB-INF\classes\myServlets" folder. Where should I put the JSP file so that the servlet can access it.Right now I have put it under "C:\tomcat\webapps\myDevelopment\WEB-INF" folder but I get the http 404 file not found error.
Here is the servlet code:
String checkOutURL = response.encodeURL("/CheckOut.html");
I have tried different combinations of writing the directory path.but still the same error.
can someone pinpoint the error??
thanks,
trupti
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put the JSP in C:\tomcat\webapps\myDevelopment
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic