You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rum Pel <ru...@hotmail.com> on 2002/08/14 10:46:24 UTC

what is url rewriting

Can somebody tell me what is url rewriting? and does it
solve my problem:

I want to change the URL in the browser addressbar depending
on what the servlet outputs. ie., is there any provision
in the http spec for sending an url back to the client along
with the content?

Is this possible?

thanks.
--rp



_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: what is url rewriting

Posted by Jan Willem Penterman <jw...@shapers.nl>.
I'd say make it work the other way around. If you want those URL's to be
meaningful to the servlet (think search engines or referring to a
specific call to your servlet), you'd have to do that anyway.

So instead of trying to rewrite the URL in the addressbar, you make your
servlet generate the URL's you want in your address bar and put those in
the HREFs/ACTIONs on your form. Then (if neccesary, ) after the request
you map the URL to your servlet parameters.

JW

> -----Original Message-----
> From: Rum Pel [mailto:rum_pel@hotmail.com]
> Sent: woensdag 14 augustus 2002 10:46
> To: tomcat-user@jakarta.apache.org
> Subject: what is url rewriting
> 
> 
> Can somebody tell me what is url rewriting? and does it
> solve my problem:
> 
> I want to change the URL in the browser addressbar depending on what 
> the servlet outputs. ie., is there any provision in the http spec for 
> sending an url back to the client along with the content?
> 
> Is this possible?
> 
> thanks.
> --rp
> 
> 
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> unsubscribe@jakarta.apache.org>
> For
> additional commands, 
> e-mail: <ma...@jakarta.apache.org>
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>