Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN

 
Allistair Crossley
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Allistair Crossley
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind - it was me ... my getTest() method was doing return getTest()! instead of return test.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic