aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes '/' means root of what? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark " Watch " New topic
Author

'/' means root of what?

Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
If the argument of the sendRedirect method begins with '/', than it is a
relative to the servlet container's root (not to the web application's root).

Is the same thing true for encodeURL, encodeRedirectURL methods?

Thanks in advance.


_ __ _ __ _ __ _<br />SCJP 1.4 (95%) | SCWCD 1.4 (79%)<br />Artificial intelligence is no match for natural stupidity.
Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
Can anybody clarify this? Still waiting...
Ritu varada
Ranch Hand

Joined: Sep 08, 2004
Posts: 117
Look at this explanation..

http://www.coderanch.com/t/168565/java-Web-Component-SCWCD/certification/Relativ-urls-mistake-HFS-page


SCJP,SCWCD(1.4)
Deb Sadhukhan
Ranch Hand

Joined: Nov 05, 2003
Posts: 67
Thanks Ritu.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: '/' means root of what?