One thing I have found to be a problem is that you cannot have multiple setters for
these properties.
We have implemented a standard that states.
Getters and Setters must be of the type of the property.
ie
private Date foo;
public Date getFoo(){
return foo;
}
public void setFoo(Date newFoo){
this.foo = newFoo;
}
And if you need to set the property with a different type name the setter something
else
ie
public void setFooWithString( String newDate)
foo.setDate(newDate);
}
There is a problem with Introspec and finding the proper methods when the
getters/setters have different types and multiple setters with different types. You
can see this problem by looking in debug the PropertyDescriptor that is returned will
have a null read method which is invoked in the jsp code.
--- On Sat 11/16, Zsolt Koppany wrote:From: Zsolt Koppany [mailto:
[EMAIL PROTECTED]]To: [EMAIL PROTECTED]: Sat, 16 Nov 2002 09:23:56
+0100Subject: Hi,
I want to access the form data using the command:
"loginForm" is defined in "struts-config.xml" as follows:
I get the error attached below for the command as follows:
The form does have a getMessage() method.
How can I fix this problem?
ERROR Message:
[ServletException in:/admin/login.jsp] No getter method for property message
of bean form' javax.servlet.ServletException: No getter method for property
message of bean form at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:494)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:277) at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at
--
To unsubscribe, e-mail:
For additional commands, e-mail:
_______________________________________________
Can a Web portal forever change your life?
Win up to $25 Million on iWon - click here!
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>