You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jin Lee <jl...@entigrate.net> on 2004/04/09 21:09:36 UTC
[solved] RE: no getter method found for property - using DynaActionForms
Found my error! I seem to have problems with spelling ("form-properly"?
hehe)
Sorry for the spam :)
Jin Lee
-----Original Message-----
From: Jin Lee [mailto:jlee@entigrate.net]
Sent: Friday, April 09, 2004 11:16 AM
To: user@struts.apache.org
Subject: no getter method found for property - using DynaActionForms
Hey all,
I have a very simple form and a DynaActionForm associated with it. When I
try to load the page I get the following error:
javax.servlet.ServletException: No getter method for property SelectCourseID
of bean org.apache.struts.taglib.html.BEAN
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:800)
org.apache.jsp.pages.course.welcome_jsp._jspService(welcome_jsp.java:154)
.
.
.
Here is my DynaActionForm:
<form-bean
name="CourseWorksheetForm"
type="org.apache.struts.action.DynaActionForm">
<form-propery name="SelectCourseID" type="java.lang.Boolean"
initial="false"/>
<form-propery name="SelectSubjectCode" type="java.lang.Boolean"
initial="false"/>
<form-propery name="SelectCourseNumber" type="java.lang.Boolean"
initial="false"/>
<form-propery name="SelectCourseTitle" type="java.lang.Boolean"
initial="false"/>
<form-propery name="SelectDepartmentCode" type="java.lang.Boolean"
initial="false"/>
<form-propery name="SelectTerm" type="java.lang.Boolean" initial="false"/>
<form-propery name="SubjectCode" type="java.lang.String"/>
<form-propery name="CourseNumber" type="java.lang.String"/>
<form-propery name="CourseTitle" type="java.lang.String"/>
<form-propery name="DepartmentCode" type="java.lang.String"/>
<form-propery name="Term" type="java.lang.String"/>
</form-bean>
Here is my action mapping:
<action
path="/course/CourseWorksheet"
parameter="method"
scope="request"
name="CourseWorksheetForm"
validate="false"
type="edu.unex.exquery.course.CourseWorksheetAction">
<forward name="success" path="/course/CourseReport" redirect="true"/>
<forward name="failure" path="/course/CourseWorksheet" redirect="true"/>
</action>
Note: I have a separate struts config file for just my form beans and I
reference both config files in my web.xml (comma delimited).
Any help?
Thanks,
Jin Lee (newbie struts developer - first post)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [solved] RE: no getter method found for property - using DynaActionForms
Posted by br...@bitstream.net.
Uh...you do mean "form-property" (with a "t") right?
Though I like form-properly...it's more polite. :-)
Brady
> Found my error! I seem to have problems with spelling ("form-properly"?
> hehe)
>
> Sorry for the spam :)
>
> Jin Lee
> -----Original Message-----
> From: Jin Lee [mailto:jlee@entigrate.net]
> Sent: Friday, April 09, 2004 11:16 AM
> To: user@struts.apache.org
> Subject: no getter method found for property - using DynaActionForms
>
> Hey all,
>
>
>
> I have a very simple form and a DynaActionForm associated with it. When I
> try to load the page I get the following error:
>
>
>
> javax.servlet.ServletException: No getter method for property SelectCourseID
> of bean org.apache.struts.taglib.html.BEAN
>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
> mpl.java:867)
>
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
> l.java:800)
>
> org.apache.jsp.pages.course.welcome_jsp._jspService(welcome_jsp.java:154)
>
> .
>
> .
>
> .
>
>
>
> Here is my DynaActionForm:
>
>
>
> <form-bean
>
>
> name="CourseWorksheetForm"
>
>
> type="org.apache.struts.action.DynaActionForm">
>
>
>
>
> <form-propery name="SelectCourseID" type="java.lang.Boolean"
> initial="false"/>
>
>
> <form-propery name="SelectSubjectCode" type="java.lang.Boolean"
> initial="false"/>
>
>
> <form-propery name="SelectCourseNumber" type="java.lang.Boolean"
> initial="false"/>
>
>
> <form-propery name="SelectCourseTitle" type="java.lang.Boolean"
> initial="false"/>
>
>
> <form-propery name="SelectDepartmentCode" type="java.lang.Boolean"
> initial="false"/>
>
>
> <form-propery name="SelectTerm" type="java.lang.Boolean" initial="false"/>
>
>
>
>
> <form-propery name="SubjectCode" type="java.lang.String"/>
>
>
> <form-propery name="CourseNumber" type="java.lang.String"/>
>
>
> <form-propery name="CourseTitle" type="java.lang.String"/>
>
>
> <form-propery name="DepartmentCode" type="java.lang.String"/>
>
>
> <form-propery name="Term" type="java.lang.String"/>
>
> </form-bean>
>
>
>
> Here is my action mapping:
>
>
>
> <action
>
>
> path="/course/CourseWorksheet"
>
>
> parameter="method"
>
>
> scope="request"
>
>
> name="CourseWorksheetForm"
>
>
> validate="false"
>
>
> type="edu.unex.exquery.course.CourseWorksheetAction">
>
>
>
>
> <forward name="success" path="/course/CourseReport" redirect="true"/>
>
>
> <forward name="failure" path="/course/CourseWorksheet" redirect="true"/>
>
> </action>
>
>
>
> Note: I have a separate struts config file for just my form beans and I
> reference both config files in my web.xml (comma delimited).
>
>
>
> Any help?
>
>
>
> Thanks,
>
>
>
> Jin Lee (newbie struts developer - first post)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org