This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes No getter method available for property statId for bean under name scStateList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method available for property statId for bean under name scStateList" Watch "No getter method available for property statId for bean under name scStateList" New topic
Author

No getter method available for property statId for bean under name scStateList

prem ranjith
Greenhorn

Joined: Jul 03, 2009
Posts: 13
Hi friends.
When i run the retrive the data form data base in page loding time(Ex:load the state details in registration form), following error will be occure

javax.servlet.ServletException: No getter method available for property statId for bean under name scStateList
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.Home_jsp._jspService(org.apache.jsp.Home_jsp:174)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


how i am aolve the proble. any one can help me..
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Add a getter method available for property statId for bean under name scStateList?

It's impossible to help much beyond that, although my first guess is that you mean to be accessing an item *contained* in the list, rather than the list itself. Or you spelled "stateId" wrong.
prem ranjith
Greenhorn

Joined: Jul 03, 2009
Posts: 13
hellow friend
but have statId property in VO class.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Prove it.

In other words, re-read what I said: unless your variables are named really horribly, scStateList contains a bunch of states. Each state has an ID. The list of states most likely does *not* have an ID. I still believe you're trying to get the state ID of the list, not of a state. But you provide zero details, so I have no idea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method available for property statId for bean under name scStateList