aspose file tools*
The moose likes Struts and the fly likes help w/ struts html:options tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help w/ struts html:options tag" Watch "help w/ struts html:options tag" New topic
Author

help w/ struts html:options tag

J. Cartwright
Greenhorn

Joined: Sep 27, 2004
Posts: 16
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

Joined: Apr 13, 2004
Posts: 25
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
 
subject: help w/ struts html:options tag