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

about getRequestDispatcher() ?

 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to know that the String passed as parameter to getRequestDispatcher() shoude be encoded or not by using response.encodeURL();
 
AmitKumar Jain
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will depend whether you want to implement session handling through URL Rewriting or not.
 
hasan khan
Ranch Hand
Posts: 223
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using HttpSession for session tracking, and i am using response.encodeURL() for all links in jsp pages and in all forward & include in all servlets.

and i just to confirm that is it really require to encode a URL before passing it to requestdispatcher
 
Wayan Suwastika
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, U must use response.encodeURL() (URL re-writing) for all URL to ensure your session tracking also work well for client browser that doesn't accept cookie.

-wyasa-
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic