This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help w/ struts html:options tag

 
J. Cartwright
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Kim Lilienfeld
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic