You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Venkata Phani Kumar <ve...@ocimumbio.com> on 2006/09/21 07:14:10 UTC
parameter value is not coming correct with html:link
hi,
I am trying to display some hyper links which links to same action called 'edituser.do'.
adding to that i have pass the user email id as parameters.
To achieve that i am using following code.
<html:link action="/edituser.do" paramId="email" paramName="emp" paramProperty="email">
every thing is fine but the link is looking like this
/edituser.do?email=mail%40mail.com
Infact i am getting email value from db and displaying here. i am not getting how come it converting '@' symbol to '%40'.
could any body help.
thanks in advance
Regards,
Venkata Phanikumar. G
Re: parameter value is not coming correct with html:link
Posted by Chris Pratt <th...@gmail.com>.
That's a standard URLEncoding conversion. There are very few
non-alphanumeric characters that are allowed in a URL and that's the
properly encoded URL. If you use it as is and check the value of the email
parameter (with request.getParameter("email")) in the action mapped to
edituser.do, you should get mail@mail.com.
(*Chris*)
On 9/20/06, Venkata Phani Kumar <ve...@ocimumbio.com> wrote:
>
> hi,
> I am trying to display some hyper links which links to same action called
> 'edituser.do'.
> adding to that i have pass the user email id as parameters.
> To achieve that i am using following code.
> <html:link action="/edituser.do" paramId="email" paramName="emp"
> paramProperty="email">
>
> every thing is fine but the link is looking like this
> /edituser.do?email=mail%40mail.com
>
> Infact i am getting email value from db and displaying here. i am not
> getting how come it converting '@' symbol to '%40'.
>
> could any body help.
>
> thanks in advance
>
> Regards,
> Venkata Phanikumar. G
>
Re: parameter value is not coming correct with html:link
Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,
Try setting the attribue useLocalEncoding of <html:link> to true or false.
sometimes it would help.
Thanks,
Nuwan
----- Original Message -----
From: "Venkata Phani Kumar" <ve...@ocimumbio.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Thursday, September 21, 2006 5:14 AM
Subject: parameter value is not coming correct with html:link
hi,
I am trying to display some hyper links which links to same action called
'edituser.do'.
adding to that i have pass the user email id as parameters.
To achieve that i am using following code.
<html:link action="/edituser.do" paramId="email" paramName="emp"
paramProperty="email">
every thing is fine but the link is looking like this
/edituser.do?email=mail%40mail.com
Infact i am getting email value from db and displaying here. i am not
getting how come it converting '@' symbol to '%40'.
could any body help.
thanks in advance
Regards,
Venkata Phanikumar. G
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org