You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bhamidi Krishna <bh...@hotmail.com> on 2001/08/24 17:16:15 UTC
URL Encode for a JSP Page using Struts
Hi,
I have an elementary question. I want to encode the URL of my jsp page that
I call using findForward() say something like a mode parameter.
So my jsp url will look like:
http://localhost:8080/someURL/doSomething?mode=21
How can I do that?
Krishna
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: URL Encode for a JSP Page using Struts
Posted by Ted Husted <hu...@apache.org>.
Just put it in as a Global Forward, something like this
<forward name="itemFindScript"
path="/do/item/Search?column=script"/>
or in your case
<forward name="something"
path="/do/Something?mode=21"/>
or, using extension mapping
<forward name="something"
path="/Something.do?mode=21"/>
You can also refer to Global Forwards in the link tag, and Struts will
append any other parameters you supply (paramID, paramProperty).
Bhamidi Krishna wrote:
>
> Hi,
>
> I have an elementary question. I want to encode the URL of my jsp page that
> I call using findForward() say something like a mode parameter.
>
> So my jsp url will look like:
> http://localhost:8080/someURL/doSomething?mode=21
>
> How can I do that?
>
> Krishna
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/