I wanted how sessions are maintaines through url rewriting and not throught Cookies.
I wrote this program to find out about session in cookies..
But I am not sure how to use the same program for urlrewriting..
My SessionServlet.java
and the form.jsp is
And my web.xml is:
Now I am sure where to fit the url rewriting ..which is mentioned in HFSJ as ...
out.println("click me");
This line gives a hyperlink.
When we click on
click me it goes to /sissy.do.
Now if i change my form.html to
<form method="get" action="MyUrlRewritingServlet.do">
The parmeters of the form will not be passed.
So i am not sure how to make this work and see the results of UrlRewriting...
Can someone please help with the code...