This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem with html:select" Watch "Problem with html:select" New topic
Author

Problem with html:select

AbhiRam Kalyan
Greenhorn

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?
Thanks
Sasikanth


Sasikanth
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
Greenhorn

Joined: Oct 31, 2005
Posts: 25
Hi Brent,
Thankyou very much,now its working..
 
 
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