This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request dispatcher object in servlet

 
saahil sinha
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
I need help with request dispatcher used in servlet to forward request to jsp.I have stored my file display.jsp in tomcat 4.1\webapps\ROOT directory now how do specify the path in request dipatcher do i specify it as /display.jsp or c:\program files\apache group\tomcat 4.1\webapps\root\display.jsp.
 
suresh guru
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u have to use a path relative to the ROOT context
for ex getRequestDispatcher("/jsp/page.jsp").forward(req,res);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic