aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes encodeURL() and encodeRedirectURL() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "encodeURL() and encodeRedirectURL()" Watch "encodeURL() and encodeRedirectURL()" New topic
Author

encodeURL() and encodeRedirectURL()

Raju Sri
Ranch Hand

Joined: Mar 10, 2004
Posts: 108
Hi,

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

HttpServletRequest.encodeURL()
HttpServletResponse.encodeRedirectURL()


Regards
Raju


SCJP 1.4<br />SCWCD 1.4<br />SCBCD 1.3<br />SCDJWS 1.4
Kaspar Minosiantz
Ranch Hand

Joined: Sep 25, 2003
Posts: 36
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


SCJP 1.4 SCWCD 1.4 <a href="http://www.jroller.com/page/kaspar_ru" target="_blank" rel="nofollow">blog</a>
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
What is unclear about the JavaDoc?

- Peter
 
wood burning stoves
 
subject: encodeURL() and encodeRedirectURL()