This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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
 
Similar Threads
logic:iterate in struts
My html:select is not working
LazyList pattern error...
problem in retriving the data from ArrayList using Struts bean:write tag
javax.servlet.ServletException: Cannot find bean employerSearchForm in any scope