• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

help w/ struts html:options tag

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I'm having some trouble with the <html ptions> tag and the responses that I've found on the subject don't seem to apply to my situation or work at all.

I'm using Struts 1.2.4, if that makes any difference.

I have an ArrayList that was put into request scope by the Action. I've verified that I can access it in the JSP, but the html ptions keeps complaining about lack of a getter method.

this is what the JSP looks like:
<%-- verify that ArrayList is accessible and populated --%>
${imageTypeList[2]}

<html:select property="imagetype" size="1">
<html ptions collection="imageTypeList" property="value" />
</html:select>


Can anyone point out what I'm doing wrong?

Thanks!

-- john
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There

What is the ArrayList of? And are you sure that whatever is in the arraylist has a getValue method? Also, make sure that there is a getImagetype() method in your form. Be sure to watch the caps to make sure it corresponds except that the first letter in the jsp must be small.

Hope this helps.

K
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic