Two Laptop Bag
The moose likes Struts and the fly likes Error 500 Internal server error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error 500 Internal server error" Watch "Error 500 Internal server error" New topic

Error 500 Internal server error

bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
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 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

anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
can you please post ur java bean code,after seeing that may be somebody can help u.
anupa oru
Ranch Hand

Joined: Jan 15, 2005
Posts: 118
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
subject: Error 500 Internal server error
It's not a secret anymore!