>From looking at my config it seems ok:

<action path="/fetchCP"
        type="com...PendingCPAction"
        name="pendingRecordForm"
        scope="request"
        input="/jsp/searchCP.jsp"
                validate="true">
        <forward name="failure" path="/jsp/searchCP.jsp"/>
        <forward name="success" path="/jsp/updateCP.jsp"/>
    </action>

<form-bean
            name="pendingRecordForm"
            type="com...PendingRecordForm"/>

I think the config is ok because it works in another JSP which uses the
same form and the same field it complains about. 

-----Original Message-----
From: Scott Purcell [mailto:[EMAIL PROTECTED] 
Sent: 06 December 2005 17:06
To: Struts Users Mailing List
Subject: RE: No getter method it sayes

In the mapping for this jsp page, is the form configured properly under
"name" and also referred to as an element under the <form-beans>
element.

I have seen that error before and it usually has something to do with
the fact that it is not picking up your form from either request or
session.

If you do not see it, post parts of struts-config.xml

All else looked good.




-----Original Message-----
From: Faisal Shoukat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 06, 2005 10:58 AM
To: user@struts.apache.org
Subject: No getter method it sayes


I get the following error when trying to load a jsp page:

 

No getter method for property action of bean
org.apache.struts.taglib.html.BEAN

 

After looking through various postings it seems that this is to do with
the getter method in the form bean however my form bean does have the
getter method in it and it is public.  In fact I have another JSP page
which does something similar which actually works with the same
property.

 

Following is my code in the jsp which it complains about:

 

<html:hidden property="action"/>

 

In my form bean I have the following: 

 

/**

                         * @return Returns the action.

                         */

                        public String getAction() {

                                    return action;

                        }

 

                        /**

                         * @param action The action to set.

                         */

                        public void setAction(String action) {

                                    this.action = action;

            }

 

 

What is even stranger is I am adding something to this form in the
multibox element further down the page which works fine if I remove the
html:hidden tag. 

So the form and struts configuration is fine.

 

<td width="28"> 

        <div align="center">

          <html:multibox name="pendingRecordForm" property="party">

            <bean:write name="record" property="identity"/>

            </html:multibox>

            </div>

      </td>

 

Has anybody any advise

 

 

 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to