struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Ng <jng...@yahoo.com>
Subject Re: Want to use <html:link forward> but do not want jsession included in new link
Date Mon, 03 Dec 2001 02:53:17 GMT
Hi Ted,

I have a similar question.  For example, when writing
a shopping cart application, in the URL:
"http://locathost/shoppingcart/displayCart.do", I have
a <html:form name=/shoppingcart/deleteItem.do
method=post> for item deletion.  Once the form
submitted the URL would then become
"http://locathost/shoppingcard/deleteItem.do" 
However, as what tony asked, how can I make the URL so
that it becomes something like
http://localhost/shoppingcart/displayCart.do again
after the form submission?  How can we "re-write" the
URL?

Thanks
John





--- Ted Husted <husted@apache.org> wrote:
> URL rewriting is built-into the tags, and would have
> to be turned off in
> the container. Though, I'm not sure that all
> containers support
> disabling URL rewriting as an option. 
> 
> antony@claire.co.jp wrote:
> > 
> > Hi
> > 
> > I have a log off action on my page
> > 
> > <html:link forward="logoff">
> > 
> > this gets rewritten by struts as
> > 
> >
>
http://localhost:8180/testapp/logoff.do;jsession=97BEFADEA3987234AC3F55
> > 
> > so that on my logon screen, I have the link
> > 
> >
>
http://localhost:8180/testapp/logoff.do;jsession=97BEFADEA3987234AC3F55
> > 
> > which looks ugly,  I want it to have the link
> > 
> > http://localhost:8180/testapp/index.jsp
> > 
> > without any jsession ID and the page "index.jsp"
> shown instead of
> > "logoff.do".
> > 
> > How can I do this?
> > 
> > Cheers
> > 
> > Tony
> > 
> > --
> > To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel +1 716 737-3463
> -- http://www.husted.com/struts/
> 
> --
> To unsubscribe, e-mail:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message