This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Problem with html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with html:select" Watch "Problem with html:select" New topic

Problem with html:select

AbhiRam Kalyan

Joined: Oct 31, 2005
Posts: 25
Hi all,
I am getting the following error, unable to find out please help:

My jsp page:

Action class:

Snippet from ActionForm:

data access code:

I am able to get the data in to projectManagerList in action class and by iterating it i am able to print the data.
Please help me out where is error?

Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
At first glance, it looks like you have your property attributes switched. The property of the html:select tag is the value of the selected item where the property of the htmlptionsCollection tag is the collection to iterate.

Like this:

- Brent
AbhiRam Kalyan

Joined: Oct 31, 2005
Posts: 25
Hi Brent,
Thankyou very much,now its working..
I agree. Here's the link:
subject: Problem with html:select
Similar Threads
Display ArrayList data on jsp page
Bean setters not invoked when no data entered in form fields
Populating 'html:select' with values in Database
Cannot create iterator for FormBean
Logic Iterate