Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

encodeURL() and encodeRedirectURL()

 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the difference between these two methods and how they differ ?

HttpServletRequest.encodeURL()
HttpServletResponse.encodeRedirectURL()


Regards
Raju
 
Kaspar Minosiantz
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you ment
HttpServletResponse.encodeURL()
HttpServletResponse.encodeRedirectURL()

The second method encods the URL for redirection via
HTTP (302) response code

btw
Servlets and JavaServer Pages: The J2EE Technology Web Tier by Jayson Falkner is a great book

http://theserverside.com/books/addisonwesley/ServletsJSP/index.tss

Thanks a lot to Jayson Falkner
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is unclear about the JavaDoc?

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