I am experiencing a pig of a problem. Just started with Struts. Have written a bean extending ActionForm. Has 1 private String class var called test. Has a setter and getter for it. Compiles fine. In my struts config I have defined <form-bean name="firstForm" type="com.comp.a.MyFirstForm" /> I also tried the version where you explicitly define the set property in this form-bean tag but same error is generated. I have a html page where i use <html:form action="firstFormAction.do"> <html:text property="test" size="16" maxlength="18" /> </html:form> and an action <action path="/firstFormAction" type="com.comp.a.MyFirstFormAction" name="firstForm" scope="request" validate="false" input="someformpage">
<forward name="someformpage" path="/firstFormAction.jsp" redirect="true" /> </action> I get this silly error when loading the html Exception thrown by getter for property test of bean org.apache.struts.taglib.html.BEAN
Joined: Jul 22, 2003
nevermind - it was me ... my getTest() method was doing return getTest()! instead of return test.