File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes No getter method when trying to populate select on .jsp page in Struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method when trying to populate select on .jsp page in Struts" Watch "No getter method when trying to populate select on .jsp page in Struts" New topic
Author

No getter method when trying to populate select on .jsp page in Struts

Robert Wiscup
Ranch Hand

Joined: Oct 18, 2009
Posts: 45
Hi Everyone,

Despite my best efforts I have not been able to overcome this problem . . .

When loading one of my DropDown Boxes on my .jsp I get the error:

"org.apache.jasper.JasperException: No getter method available for property staffId for bean under name org.apache.struts.taglib.html.BEAN"

The odd thing about this is that I'm populating other dropdowns on the same .jsp page and they work fine . . . and they are coded very similar to this one so it's something particular to this dropdown . . .

Thanks for your help,

Rob



*********** Bean *******************




************* JSP *******************




******* Relevant Portion of Action *************

Robert Wiscup
Ranch Hand

Joined: Oct 18, 2009
Posts: 45
Hi All,

I was able to solve this problem finally . . . so please disregard . . .

Rob
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Hi Robert and Ranchers,
Even I'm facing a similar issue in Struts Dropdown.
Could you please look into my issue and help me in resolving it.



When The Going Gets Tougher,The Tougher gets Going
Robert Wiscup
Ranch Hand

Joined: Oct 18, 2009
Posts: 45
Hi Deepak,

I can try to assist . . . what exactly is the problem?

Rob
Deepak Lal
Ranch Hand

Joined: Jul 01, 2008
Posts: 507

Requirement :: i want to assign a dropdownList in jsp page using options collection.so please help me out with this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method when trying to populate select on .jsp page in Struts
 
Similar Threads
Populating <html:select> tag
Issue in Struts Dropdown(Need Help Ranchers)
Displaying Data From Different Tables in .jsp
java.lang.IllegalArgumentException: argument type mismatch
org.springframework.beans.NotReadablePropertyException