Javax.servlet.jsp.JspException:No Getter method for property

Source: Internet
Author: User

javax.servlet.jsp.JspException: No getter method for property getAvailableAddressRequest.resellerId of bean org.apache.struts.taglib.html.BEAN    at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:968)

Struts-config.xml:

<form-beans>        <form-bean name="getAvailableAddress" type="com.wisor.talktalk.model.GetAvailableAddress" />        <form-bean name="provideRequest" type="com.wisor.talktalk.common.talktalkbean.RequestActionForm" />    </form-beans>    <action-mappings>        <action path="/ttTestJsp" type="com.wisor.talktalk.controller.TestJsp"             name="getAvailableAddress"             scope="session"             validate="false"             unknown="false">            <forward name="init" path="/WEB-INF/talk/preorderView/getAvailableAddress.jsp"/>        </action>    </action-mappings>

JSP Page:

Formbean Main:

 public class GetAvailableAddress extends ActionForm{ private GetAvailableAddressRequest getAvailableAddressRequest; public void intilize(){ getAvailableAddressRequest = new GetAvailableAddressRequest(); } public GetAvailableAddressRequest getGetAvailableAddressRequest(){ return this.getAvailableAddressRequest; } public void setGetAvailableAddressRequest(GetAvailableAddressRequest getAvailableAddressRequest){ this.getAvailableAddressRequest = getAvailableAddressRequest; }}child Form Bean: public class GetAvailableAddressRequest implements Serializable{ private String resellerId; public String getResellerID(){ return this.resellerId; } public void setResellerID(String resellerId){ this.resellerId = resellerId; } }

Action Class:

public class TestJsp extends Action {Logger logger = Logger.getLogger(this.getClass());@Overridepublic ActionForward execute( ActionMapping map, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws Exception{ActionForward forward = null; GetAvailableAddress form = (GetAvailableAddress) actionForm;form.intilize();forward = map.findForward("init"); return forward;}}

Javax.servlet.jsp.JspException:No Getter method for property

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.