This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Difference between encodeURL and encodeRedirectURL  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Difference between encodeURL and encodeRedirectURL  " Watch "Difference between encodeURL and encodeRedirectURL  " New topic
Author

Difference between encodeURL and encodeRedirectURL

sudesai
Greenhorn

Joined: Mar 30, 2001
Posts: 7
Hi,
Can some one in the group elaborate on the subject.
Thanks,

------------------
Sandeep Desai

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56


Sandeep Desai <BR>[email]vgdesai@bom3.vsnl.net.in [/email]<BR><OL TYPE=1> <BR><LI><B>Sun Certified Java Programmer</B> <I>Scored 93 per cent </I><BR><LI><B>Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </B><I>Scored 56 out of 59 </I><BR><LI><B>IBM Enterprise Connectivity with J2EE </B><I> Scored 72 per cent </I><BR><LI><B>Enterprise Development on the Oracle Internet Platform </B><I> Scored 44 out of 56 </I><BR></OL>
sudesai
Greenhorn

Joined: Mar 30, 2001
Posts: 7
Hi,
I understand, that response.encodeRedirectURL() is used while URL rewriting.But how would be different if I use response.encodeURL()?
The Java API doc says -

Because the rules for making this determination can differ from those used to decide whether to encode a normal link, this method is seperate from the encodeURL method.

What are these rules the API is referring to.
Thanks in advance,

------------------
Sandeep Desai

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
Refresh, it is urgent
Thanks,
------------------
Sandeep Desai
vgdesai@vsnl.com

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56


<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Difference between encodeURL and encodeRedirectURL