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 Sessions/URL rewriting 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 "Sessions/URL rewriting" Watch "Sessions/URL rewriting" New topic
Author

Sessions/URL rewriting

Jessica Farnham
Greenhorn

Joined: Feb 12, 2001
Posts: 5
Hi--
I'm trying to use sessions in a servlet using URL rewriting, but it doesn't seem to be working right for me. The servlet should send the user a page that includes a form that has an encoded URL as the submit address. Since I can't make this happen by redirecting, I've been doing the following:
1. Create the session
2. Encode the URL
3. Insert the encoded URL into the HTML string
4. Write the HTML to the response PrintWriter
Bu when the page comes up, the URL hasn't been encoded. Am I missing a step or doing something wrong here? Or is there something I need to configure to enable sessions? I'm doing this with Tomcat through the Sun j2ee reference implementation.
I'd appreciate any thoughts. Thanks--
Jessica
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sessions/URL rewriting
 
Similar Threads
Why does jsessionid appear in path?
url rewriting
difference between urlencoding and urlrewriting
HttpSession/HttpRequest and performance
Reg URL rewriting