File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes endcodeURL vs encodeRedirectURL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "endcodeURL vs encodeRedirectURL" Watch "endcodeURL vs encodeRedirectURL" New topic
Author

endcodeURL vs encodeRedirectURL

tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Hi,
Could someone tell me what the difference between
HttpServletResponse.endcodeURL and HttpServletResponse.endcodeRedirectURL ?


SCJP2, SCWCD
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
encodeRedirectURL is normally used along with sendRedirect method. That is u are passing ur session to the new request
encodeURL can be used in forward,include where u have to pass the session info.
Basically both do the same. that is append the JSESSIONID in the url when cookies are disabled
 
 
subject: endcodeURL vs encodeRedirectURL
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture