This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes problem with displaying ArrayList values using <html:select> tag in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem with displaying ArrayList values using <html:select> tag in jsp" Watch "problem with displaying ArrayList values using <html:select> tag in jsp" New topic
Author

problem with displaying ArrayList values using <html:select> tag in jsp

a kishore
Ranch Hand

Joined: Sep 16, 2009
Posts: 82

Hi,

any help is appreciated.
im trying to populate values in jsp using <html:select> and <htmlptions> tags. but im getting the following error.
javax.servlet.ServletException: javax.servlet.jsp.JspException: No getter method available for property status for bean under name org.apache.struts.taglib.html.BEAN

<td>Status<br>
<html:select size="6" property="status">
<htmlptions collection="statusList" labelProperty="status" property="status" />
</html:select>
</td>

here status is one of the string in my form bean and statusList is arraylist from previous action. can anyone tell me as im following correct or not? but im sure that arraylist contains values and can print size using normal jsp scriplets before to these tags.

thanks in advance
kishore
vivek mahajan
Greenhorn

Joined: Jun 18, 2009
Posts: 22
Hi Kishore Welcome,
you must have getStatus() method in your Bean class which is used to render the html elements usins <HTML:XXX> tags as your error shows you don't have it. Do you want the options to be generated dynamically by arraylist.
a kishore
Ranch Hand

Joined: Sep 16, 2009
Posts: 82
thanks for reply,

im sorry to mention that, i have that getter method in my formbean. still im getting that error.

any idea to solve ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with displaying ArrayList values using <html:select> tag in jsp
 
Similar Threads
Html:options
Problem with html:options
html:options
how to set arraylist in formbean and display the same values in jsp
html:select html:options