aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with html:select
 
Similar Threads
Logic Iterate
Bean setters not invoked when no data entered in form fields
Populating 'html:select' with values in Database
Cannot create iterator for FormBean
Display ArrayList data on jsp page