File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN
 
Similar Threads
ActionForm access Via DynaActionForm?
Problem with IndexId attribute
New to struts, please help
Cannot Retrieve Definition for Form Bean Null
Actionform not populating JSP