Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Error 500 Internal server error

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

Iam stuck up with an error...Hope u guys can help .

Iam using a bean called TypeBean which had elements Name and CreateDate.

I set the bean in the Action class after populating the bean as:

request.setAttribute("list", list_bean);

Where list_bean is the bean object which has been populated.


And in my JSP I use <logic resent> and <logic:iterate> as follows:


<logic resent name="list" >
<logic:iterate id="listdetails" name="list">
<bean:write name="listdetails" property="Name"/>
</logic:iterate>
</logic resent>


But I get an error saying


Error 500--Internal Server Error
javax.servlet.jsp.JspException: No getter method for property Name of bean listdetails



I checked for the case of the property element and so on... But evrything is fine and still i get this error.


Can Any one of you guys HELP ME FAST!!!
thanks in advance

Bhuvana
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
can you please post ur java bean code,after seeing that may be somebody can help u.
Thanks
Anupa
 
anupa oru
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
according to my knowledge you have to use
<bean:write name="...." property="name" />
in ur java bean class u have to have
getName() and setName() methods for property named name.
this is the convention to be used for java bean property.
Let me know how it works
Thanks
Anupa
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic