aspose file tools*
The moose likes Struts and the fly likes Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN" Watch "Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN" New topic
Author

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

Allistair Crossley
Greenhorn

Joined: Jul 22, 2003
Posts: 3
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

Joined: Jul 22, 2003
Posts: 3
nevermind - it was me ... my getTest() method was doing return getTest()! instead of return test.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN