You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roberto Nunnari <ro...@supsi.ch> on 2007/12/30 21:39:29 UTC
using cookies in tags
Hello list.
in jsp I used to do things like:
<tr>
<td>nome utente: <br>username: </td>
<td><input name="username" value="${cookie['username'].value}" /></td>
</tr>
but in S2 if I try the following
<s:textfield key="Username" name="username"
value="${cookie['username'].value}" required="true"/>
it gives me an error.. so.. how to use cookies in
<s:textfield>, <s:password> and <s:checkbox>?
Thank you!
--
Robi
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: using cookies in tags
Posted by Roberto Nunnari <ro...@supsi.ch>.
ok ok.. shouldn't post when tired.. got the cookie interceptor!
sorry for the noise!
Best regards.
--
Robi
Roberto Nunnari wrote:
> Hello list.
>
> in jsp I used to do things like:
>
> <tr>
> <td>nome utente: <br>username: </td>
> <td><input name="username" value="${cookie['username'].value}" /></td>
> </tr>
>
> but in S2 if I try the following
>
> <s:textfield key="Username" name="username"
> value="${cookie['username'].value}" required="true"/>
>
>
> it gives me an error.. so.. how to use cookies in
> <s:textfield>, <s:password> and <s:checkbox>?
>
>
> Thank you!
>
> --
> Robi
>
> ---------------------------------------------------------------------
> 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