:
Subject: Re: select and option tag
issues
11/06/2002 11:52
AM
List'
Subject: Re: select and option tag issues
I posted this question a couple of days ago and received an answer.
Unfortunately the answer does not work for me. The problem I am having
is on the initial page of my web application I have drop-down boxes that
I want to be populated
:
Subject: Re:
select and option tag issues
11/06/2002 11:52
AM
Please respond to
Struts Users
Mailing List
Have you discovered
html:optionsCollection property=options label=label value=value/
/html:select
-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
Sent: Friday, November 08, 2002 8:50 AM
To: Struts Users Mailing List
Subject: Re: select and option tag issues
I posted this question a couple
]
.netcc:
Subject: RE: select and option tag
issues
11/08/2002 08:08
] [mailto:tbachta;kcp.com]
Sent: Friday, November 08, 2002 10:36 AM
To: Struts Users Mailing List
Subject: RE: select and option tag issues
Ok I am still getting an error, the error is:
javax.servlet.jsp.JspException: No getter method available for property
getLocationValues for bean under
, not the property name.
Let me know if that helps
Edgar
-Original Message-
From: [EMAIL PROTECTED] [mailto:tbachta;kcp.com]
Sent: Friday, November 08, 2002 10:36 AM
To: 'Struts Users Mailing List'
Subject: RE: select and option tag issues
Ok I am still getting an error, the error
Have you discovered the collection attribute of the options tag? Your
action can build any collection you desire (ie from a database -- see
org.apache.struts.util.LabelValueBean for holding the name/value pairs).
It then places that collection into some scope (whichever you like) and
forwards
If you examine the struts-example.war you will find a JSP named
'subscription.jsp'. If you need additional guidance, I'd suggest
examining that page. While I don't particularly care for the way it
makes the collection available, it should serve as a good example of how
to use html:options.
9 matches
Mail list logo