You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "mersenne.fang" <me...@gmail.com> on 2011/05/16 09:24:00 UTC

how could i place sign # on redirectAction param?

please refer to following setting in struts.xml

      <result type="redirectAction">
        PostedEassy
        ${classId}
        ${curriculumId}#${topicId}
      </result>


the result will product the result:
PostedEassy.action?classId=53&curriculumId=22&topicId%23191


The explicit result that i want is
PostedEassy.action?classId=53&curriculumId=22&topicId#191

The character # became '%23'.

How can i resolve this problem.

Thanks a lot.




--
View this message in context: http://struts.1045723.n5.nabble.com/how-could-i-place-sign-on-redirectAction-param-tp4399604p4399604.html
Sent from the Struts - User mailing list archive at Nabble.com.

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


Re: how could i place sign # on redirectAction param?

Posted by Eric Lentz <Er...@sherwin.com>.
> How can i resolve this problem.

It isn't a problem. Its part of the URI standard:
http://tools.ietf.org/html/rfc3986#section-2.2

# = Hexadecimal 23 in the ascii chart.

topicId%23191 is fine because it is equal to topicId#191

It will be correctly decoded when sent to the server.


Re: how could i place sign # on redirectAction param?

Posted by Stefan Magnus Landrø <st...@gmail.com>.
You can't - they are client-side only


Den 16. mai 2011 kl. 09:24 skrev "mersenne.fang" <me...@gmail.com>:

> please refer to following setting in struts.xml
> 
>      <result type="redirectAction">
>        PostedEassy
>        ${classId}
>        ${curriculumId}#${topicId}
>      </result>
> 
> 
> the result will product the result:
> PostedEassy.action?classId=53&curriculumId=22&topicId%23191
> 
> 
> The explicit result that i want is
> PostedEassy.action?classId=53&curriculumId=22&topicId#191
> 
> The character # became '%23'.
> 
> How can i resolve this problem.
> 
> Thanks a lot.
> 
> 
> 
> 
> --
> View this message in context: http://struts.1045723.n5.nabble.com/how-could-i-place-sign-on-redirectAction-param-tp4399604p4399604.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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