File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!