Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Trying to show a pulldown using Struts html:select

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
For my next feat, I will require a volunteer from the audience! Perhaps this tiny ad?
The trailboss has a kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic