You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Krishna Mohan Radhakrishnan <Kr...@infosys.com> on 2005/02/17 09:35:06 UTC
Regarding HTML:options tag
HI,
I have one doubt regarding the use of html:options tag.
In the jsp itself I have got a set of values like List questions= "SOME
VALUE OBTAINED FROM THE DATABASE- ie name value pairs".
In the jsp I have a html:options tag. <html:options name=" <%= questions
%> " property="What do I give here " labelProperty=" What do I give here
to obtain the labels "/>
I don't have any entries in the form bean for the collection . Only
entry I have in the form bean corresponds to the property name I have
given in the select tag.
Can anyone help
Regards,
Krishna MOhan
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Regarding HTML:options tag
Posted by Pavel Kolesnikov <pa...@gmail.com>.
I guess you should better use the "collection" attribute instead of "name".
See http://struts.apache.org/userGuide/struts-html.html#options
Pavel
On Thu, 17 Feb 2005 14:05:06 +0530, Krishna Mohan Radhakrishnan
<Kr...@infosys.com> wrote:
>
>
> HI,
>
> I have one doubt regarding the use of html:options tag.
>
> In the jsp itself I have got a set of values like List questions= "SOME
> VALUE OBTAINED FROM THE DATABASE- ie name value pairs".
>
> In the jsp I have a html:options tag. <html:options name=" <%= questions
> %> " property="What do I give here " labelProperty=" What do I give here
> to obtain the labels "/>
>
> I don't have any entries in the form bean for the collection . Only
> entry I have in the form bean corresponds to the property name I have
> given in the select tag.
>
> Can anyone help
> Regards,
> Krishna MOhan
>
> ---------------------------------------------------------------------
> 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