• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

endcodeURL vs encodeRedirectURL

 
tony lee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could someone tell me what the difference between
HttpServletResponse.endcodeURL and HttpServletResponse.endcodeRedirectURL ?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic