aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes encodeURL path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "encodeURL path " Watch "encodeURL path " New topic
Author

encodeURL path

Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
Please confirm:

1. encodeURL and encodeRedirectURL needed a path relative to the context.
Specified with a "/" - (Mandatory).So if we have "/foo.jsp" for an application "tester" - It is translated to tester/foo.jsp?

2. encodeURL and encodeRedirectURL - perform url encoding (always) and url rewriting on need basis ( based on if cookies are enabled or not and context is same/difft).


Thanks to confirm,
Regards,
Shivani.


/** Code speaks louder than words */
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I agree with number 2, but not number 1.
I think that "/foo.jsp" will still be "/foo.jsp". If anybody could confirm that.


[My Blog]
All roads lead to JavaRanch
akshay pandit
Ranch Hand

Joined: Jun 15, 2003
Posts: 44
Hi,

As per my understanding .. when passed as " /foo.jsp " , container will search the jsp in the current directory.
Mohd Fuzail
Ranch Hand

Joined: Feb 20, 2002
Posts: 107
So if we have "/foo.jsp" for an application "tester" - It is translated to tester/foo.jsp?

Please refer the errata.... '/' means relative to the web app not the application

encodeURL and encodeRedirectURL - perform url encoding (always) and url rewriting on need basis ( based on if cookies are enabled or not and context is same/difft).

URLs are encoded in both the cases, first one when we are doing like send Direct and other sone when we are redirecting. URL rewriting is a fall back mechanism in case Cookies are not supported


Being defeated is often a temporary condition. Giving up is what makes it permanent.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: encodeURL path