• 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

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

 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

any help is appreciated.
im trying to populate values in jsp using <html:select> and <html:options> 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">
<html:options 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
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ?
 
reply
    Bookmark Topic Watch Topic
  • New Topic