• Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher Doubt??

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Why is that we need the \ when we get the RequestDispatcher from the ServletContext??
 
Boobalan Jegathesan
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

/ always refered to root-context.Inorderto access any resources you will have to give url path.If you think that resource is available on root-context you dont need to give the entire absolute path like

http://localhost:8080/Mywebapp/OrderView.jsp

we could use only /OrderView.jsp

Server will try to find this OrderView.jsp resource under Mywebapp folder...


Thanks
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!