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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "help w/ struts html:options tag" Watch "help w/ struts html:options tag" New topic

help w/ struts html:options tag

J. Cartwright

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 --%>

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

Can anyone point out what I'm doing wrong?


-- john
Kim Lilienfeld

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.

It is sorta covered in the JavaRanch Style Guide.
subject: help w/ struts html:options tag