This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes RequestDispatcher Doubt?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "RequestDispatcher Doubt??" Watch "RequestDispatcher Doubt??" New topic
Author

RequestDispatcher Doubt??

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Hi Guys,

Why is that we need the \ when we get the RequestDispatcher from the ServletContext??


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Boobalan Jegathesan
Greenhorn

Joined: Jan 08, 2007
Posts: 17
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


Thanks<br />Boobalan.(SCJP1.4)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: RequestDispatcher Doubt??
 
Similar Threads
why we can't get RD from config?
help on Objective 4.2...
RequestDispatcher in JSP
2 ways of getting a RequestDispatcher
redirect to servlet