Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
bhaveshs shah
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic