struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Owen" <johnlowen_b...@hotmail.com>
Subject Re: Dynamic select menu in JSP **sigh**
Date Tue, 05 Nov 2002 17:06:39 GMT
I don't know what <html:optionsCollection> is, but for your purposes, I
would use <html:options> backed by a Collection as I mentioned earlier.

John
----- Original Message -----
From: "Mark Ayad" <mark@javamark.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Tuesday, November 05, 2002 11:02 AM
Subject: Re: Dynamic select menu in JSP **sigh**


> Not worried.
>
> But something I'm planning for the future should help everyone with API's
> jar versions and examples. A little project I'm dreaming up. I'm sure If
ask
> ask for a show of hand I'll get this project off the ground.
>
> Still I've made progress.
>
> Not sure what's the difference with:
>
> <html:optionsCollection
>
> <html:options
>
> But if I dig I might find out.
>
> ----- Original Message -----
> From: "John Owen" <johnlowen_bham@hotmail.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Tuesday, November 05, 2002 5:47 PM
> Subject: Re: Dynamic select menu in JSP
>
>
> > Don't worry, Mark. If there were an adequate example in the Struts docs,
> you
> > would have a better idea how to start and what questions to ask.
However,
> > you have to use this list or scour the internet for examples.
> > ----- Original Message -----
> > From: "Mark Ayad" <mark@javamark.com>
> > To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > Sent: Tuesday, November 05, 2002 10:39 AM
> > Subject: Re: Dynamic select menu in JSP
> >
> >
> > > **gasp**
> > >
> > > Sure, but its knowing the right question to ask first .
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Eddie Bush" <ekbush@swbell.net>
> > > To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > > Sent: Tuesday, November 05, 2002 6:27 PM
> > > Subject: Re: Dynamic select menu in JSP
> > >
> > >
> > > > *sigh*
> > > >
> > > > There have been a number of topics going on about doing such things
> > > > lately.  Obviously, using the <html:option> tag is less than ideal.
> > > >  Have you looked at <html:options/> yet?  I think you'll find a
much
> > > > better implementation possible using it instead of <html:option/>.
> > > >
> > > > STMA (Search the Mail Archive) - most notably the last 7 days.
You're
> > > > guaranteed to find a message that gives explicit usage instructions.
> A
> > > > hint:  populate the property that represents your options in an
> action.
> > > >  If that doesn't make sense now, it will once you do some research
on
> > > > how to use <html:options/>.  If it doesn't, just let us know.
> > > >
> > > > Mark Ayad wrote:
> > > >
> > > > >I would like to know the best method to populate a form in a JSP
page
> > > with
> > > > >dynamic select menu, where the number of options in the select
> depends
> > on
> > > a
> > > > >query to the database. Specifically where is best to place the
> > > functionality
> > > > >?
> > > > >
> > > > ><html:select property="singleSelect" size="10">
> > > > ><html:option value="Single 0">Single 0</html:option>
> > > > ><html:option value="Single 1">Single 1</html:option>
> > > > >.......
> > > > >.......
> > > > ><html:option value="Single n">Single n</html:option>
> > > > >.......
> > > > ></html:select>
> > > > >
> > > > >Previous to Struts I would have looped aropund a  resultsset.
> > > > >
> > > > >What do people use ?
> > > > >
> > > > >
> > > > >Regards
> > > > >
> > > > >Mark
> > > > >
> > > >
> > > > --
> > > > Eddie Bush
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > <mailto:struts-user-help@jakarta.apache.org>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <mailto:struts-user-help@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>

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


Mime
View raw message