Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling JSP from servlet  RSS feed

 
Khanna Rahul
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to call a jsp from a servlet for which i am using the following code in the servlet
request.getRequestDispatcher(path+"replace.jsp").forward(request, response);
where path contains the virtual path (http://host/myfiles/)
but i get a No such servlet error.I even tried hardcoding the physical path of the jsp file but it gives the same error.
i am using IIS 5.0 and JRun 3.0.
can any one help ?
thanks.
 
SoonAnn Lim
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may try to use absolute path.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!