File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes tell me... why this error occurs.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "tell me... why this error occurs.." Watch "tell me... why this error occurs.." New topic

tell me... why this error occurs..

Div Raj

Joined: Nov 04, 2008
Posts: 22

My Struts action name is JobUPDAction.
I am calling a member method createJobUPD() of this Action class,in jsp.
Inside this method I wrote this code...

List<LabelValueBean> shops = new ArrayList<LabelValueBean>();
shops = jobupdmgr.getfunnelShops();

In action servlet I wrote the code like ...
<bean name="/CreatejobUPDAction"
class="com.videocon.action.admin.JobUPDAction" singleton="false">
<property name="jobupdmgr">
<ref bean="jobupdmgr" />

"jobupdmgr" is injector of JobUPDManager.

When I am trying to display my jsp page , I am not getting the proper display.
But In log file I got the error given below..

please tell me why this error occurs?

2008-11-06 15:45:15,734 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CRTRS].[action]] Servlet.service() for servlet action threw exception
javax.servlet.jsp.JspException: ServletException in '/WEB-INF/jsp/GTBUPD/CreatejobUPD.jsp': No getter method available for property value for bean under name funnelshops

Maneessh saxena
Ranch Hand

Joined: Oct 03, 2006
Posts: 125
Do you have getters for properties in your bean class ? if no then write a getter method and retry your code.

SCJP 1.4, SCWCD 1.5
Div Raj

Joined: Nov 04, 2008
Posts: 22
Thank you.
I agree. Here's the link:
subject: tell me... why this error occurs..