Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
prem ranjith
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hellow friend
but have statId property in VO class.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic