• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reg URL rewriting  RSS feed

 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the client disable the cookie in their browser, the container falls back to url rewriting.
Now all the url has the session id.

Will all the submit action get the session?

or through url rewriting, we can support only the URL?
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thennam Pandian ,

The Container will use the URL rewriting as a fall back mechanism for ONLY those URLs we encode . That is to whatever URL we encode it .
for eg .response.encodeURL('someurl.do')
 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So we can track the session ( even for submit action ) through URL rewriting.
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thennam Pandian ,

URL rewriting is possible only for dynamically generated HTML files it is NOT possible for static HTML files.
That is the HTML should be a runtime generated file(created in Servlet) or JSP .

So if your page is a dynamically generated page then with the help of Javascript you can set a encoded url string to document's action .
In that way you can do URL rewriting when a submit button is clicked

Hope this helps
 
Michael Angstadt
Ranch Hand
Posts: 278
Eclipse IDE Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as you encode the form's action URL, yes you can.
 
Thennam Pandian
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael and Parthiban. I got it.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!