This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Alway pass URLs that refer to our own site? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Alway pass URLs that refer to our own site?" Watch "Alway pass URLs that refer to our own site?" New topic
Author

Alway pass URLs that refer to our own site?

Mark Lau
Ranch Hand

Joined: Dec 15, 2001
Posts: 120
Marty Hall says in his Core Servlets and Java Server Pages (page 207):
Plan ahead: pass URLs that refer to your own site through response.encodeURL or response.encodeRedirectURL, regardless of whether your servlet is using session tracking.
So do we always do this in any of our servlet reglardless of anything?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
Yes, that was his suggestion. Reason being that, you may not know if your servlet will be among other servlets that use session tracking.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alway pass URLs that refer to our own site?
 
Similar Threads
Filters
JForum nice urls (as on Java Ranch)
[Company] Mumbai
How complex can the servlet context be in a Web App?
forwarding using a Servlet