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 Trying to show a pulldown using Struts 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 "Trying to show a pulldown using Struts html:select " Watch "Trying to show a pulldown using Struts html:select " New topic
Author

Trying to show a pulldown using Struts html:select

R Diaz
Greenhorn

Joined: Jun 24, 2008
Posts: 15
Hi everyone,

Hope that all is well.

I'm having trouble trying to show a pulldown with data in Struts 1.x.

I have the following code using iterate that shows the data in separate rows and works fine:



Now, I want to show one of those items, let's say the author values as a pulldown.

So I tried the following code:



Since I'm using the same collection as the iterate above, I thought that it should work
fine. Instead is giving me an error: "No getter method available for property bookListForm for bean under name books."

Anyway, I think it has to do with me not setting up the html:select right. I'm a
newbie.

Can someone please help?

Thank you,

Ru


Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

I'm not a struts 1.x guru, but by looking at the tag reference and your code, there seems to be something wrong with this part

bookListForm is your ActionForm, while the property attribute is used to specify the name of the request parameter is submitted to the next action (I think). Since you provide name attribute as books, so struts is looking for a form bean named books and a property named bookListForm in the books form bean...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trying to show a pulldown using Struts html:select
 
Similar Threads
No getter method for property - Problem
Cannot find bean in any scope
Struts: No getter method for property name problem
struts example -output not display
what should i use in jsp for displaying multiple records?