Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encodeURL path

 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with number 2, but not number 1.
I think that "/foo.jsp" will still be "/foo.jsp". If anybody could confirm that.
 
akshay pandit
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

As per my understanding .. when passed as " /foo.jsp " , container will search the jsp in the current directory.
 
Mohd Fuzail
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic