This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
 
subject: Exception thrown by getter for property of bean org .apache .struts .taglib.html.BEAN
 
Similar Threads
Actionform not populating JSP
Cannot Retrieve Definition for Form Bean Null
ActionForm access Via DynaActionForm?
Problem with IndexId attribute
New to struts, please help