You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Raible, Matt" <Ma...@cable.comcast.com> on 2003/05/06 19:40:51 UTC
specifying a bean:message in a hidden field
Can I use html-el or anything shorter to accomplish the same thing as below:
<input type="hidden" name="action"
value="<bean:message key="button.search"/>" />
Thanks,
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: specifying a bean:message in a hidden field
Posted by Kris Schneider <kr...@dotech.com>.
Um, didn't quite grok "shorter" from your original - sorry if it's of no help...
Quoting Kris Schneider <kr...@dotech.com>:
> Perhaps something like:
>
> <bean:define id="msg">
> <bean:message key="button.search"/>
> </bean:define>
>
> <html:form ...>
> <html:hidden property="action" value="<%= msg %>"/>
> ...
> </html:form>
>
> Quoting "Raible, Matt" <Ma...@cable.comcast.com>:
>
> > Can I use html-el or anything shorter to accomplish the same thing as
> > below:
> >
> > <input type="hidden" name="action"
> > value="<bean:message key="button.search"/>" />
> >
> > Thanks,
> >
> > Matt
>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: specifying a bean:message in a hidden field
Posted by Kris Schneider <kr...@dotech.com>.
Perhaps something like:
<bean:define id="msg">
<bean:message key="button.search"/>
</bean:define>
<html:form ...>
<html:hidden property="action" value="<%= msg %>"/>
...
</html:form>
Quoting "Raible, Matt" <Ma...@cable.comcast.com>:
> Can I use html-el or anything shorter to accomplish the same thing as
> below:
>
> <input type="hidden" name="action"
> value="<bean:message key="button.search"/>" />
>
> Thanks,
>
> Matt
--
Kris Schneider <ma...@dotech.com>
D.O.Tech <http://www.dotech.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: specifying a bean:message in a hidden field
Posted by Dan Tran <da...@hotmail.com>.
The clean way is to have your action handler to
fill the property and then your html-el picks it up
automatically. Let work on the view (jsp).
-Dan
----- Original Message -----
From: "Raible, Matt" <Ma...@cable.comcast.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, May 06, 2003 10:40 AM
Subject: specifying a bean:message in a hidden field
> Can I use html-el or anything shorter to accomplish the same thing as
below:
>
> <input type="hidden" name="action"
> value="<bean:message key="button.search"/>" />
>
> Thanks,
>
> Matt
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org