• Post Reply Bookmark Topic Watch Topic
  • New Topic

encodeURL vs encodeRedirectURL

 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between the two? what are the two scenarios when each is used?
 
Kosala W.Abayagunawardene
Ranch Hand
Posts: 47
Firefox Browser Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
encodeURL-vs-encodeRedirectURL
 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need more explanation. could not understand from this discussion.
 
Ankit Garg
Sheriff
Posts: 9597
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I remember, there's no change in the implementation of both methods in Tomcat. The specs say that encodeRedirectURL should be to encode URLs within sendRedirect method, but other than that I don't think implementations for both methods differ in practical life...
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!