You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Alireza Fattahi <af...@yahoo.com> on 2014/02/24 10:44:53 UTC

Assign html id to token

I try to ready token via javascript.

The <s:token id="tokenhidden" /> will not generate the id ! and still the output is:

<input name="struts.token.name" value="token" type="hidden">

<input name="token" value="BD4UR8JCQXRG86EUSWEFVMAM0L3199XB" type="hidden">

 

Should I read it by name ?!

~Regards,
~~Alireza Fattahi

Re: Assign html id to token

Posted by Lukasz Lenart <lu...@apache.org>.
It isn't supported but we accept patches :-)

In that case you can only reference those values via name.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2014-02-24 10:44 GMT+01:00 Alireza Fattahi <af...@yahoo.com>:
> I try to ready token via javascript.
>
> The <s:token id="tokenhidden" /> will not generate the id ! and still the output is:
>
> <input name="struts.token.name" value="token" type="hidden">
>
> <input name="token" value="BD4UR8JCQXRG86EUSWEFVMAM0L3199XB" type="hidden">
>
>
>
> Should I read it by name ?!
>
> ~Regards,
> ~~Alireza Fattahi

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