This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes No getter method available for property strKey for bean under name data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method available for property strKey for bean under name data" Watch "No getter method available for property strKey for bean under name data" New topic
Author

No getter method available for property strKey for bean under name data

bhaveshs shah
Greenhorn

Joined: Dec 21, 2006
Posts: 10
Hi Friends,

I am facing isuues with Struts,

error:-Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: No getter method available for property strKey for bean under name data

Struts-config
<action
path="/client"
type="com.ss.mitstifter.actions.ClientAction"
name="clientForm"
parameter="method"
scope="request"
input="/web/Clients.jsp">
<forward name="FWD_CLIENTS" path="/web/Clients.jsp" />
</action>

Jsp entry
<logic:notEmpty name="clientForm"
property="alClientList">
<bean:define id="data"
name="clientForm"
property="alClientList"/>
<htmlptions collection="data"
property="strKey"
labelProperty="strKey"/>
</logic:notEmpty>

I am getting above error , I have changed form bean, i have checked the getstrKey() at clientForm then too issue remains the same .

please suggest ASAP as i have spend more then 2 days.

Regards
Bhavesh Shah
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: No getter method available for property strKey for bean under name data
 
Similar Threads
multiple forms data within sigle JSP page
Struts Buttons
New to struts, please help
Error: No getter method for property
populate data form different DyanactionForms in single JSP