This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlet calling a JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlet calling a JSP" Watch "servlet calling a JSP" New topic

servlet calling a JSP

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
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??
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

put the JSP in C:\tomcat\webapps\myDevelopment

Have you checked out Aspose?
subject: servlet calling a JSP
It's not a secret anymore!