struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: <bean:struts problem
Date Sat, 16 Nov 2002 10:00:03 GMT
Nah, getMessage() would be for a property named "message".
Zsolt, can you post the code for the form?

-----Original Message-----
From: vze49jqg [mailto:vze49jqg@verizon.net]
Sent: Saturday, November 16, 2002 17:53
To: Struts Users Mailing List
Subject: Re: <bean:struts problem


Hi,

my  2 cents :

=> <logic:notEmpty name="form" property="message" >

=> The form does have a getMessage() method.

Please make sure that You are calling
<logic:notEmpty name="form" property="Message" >

Regards
Gopal


----- Original Message -----
From: "Zsolt Koppany" <zkoppany@web.de>
To: <struts-user@jakarta.apache.org>
Sent: Saturday, November 16, 2002 3:23 AM
Subject: <bean:struts problem


Hi,

I want to access the form data using the command:
 <bean:struts id="form" formBean="loginForm"/>

"loginForm" is defined in "struts-config.xml" as follows:
    <form-bean      name="loginForm"
                    type="cv.security.LoginForm" />

I get the error attached below for the command as follows:
<logic:notEmpty name="form" property="message" >

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(PageContextImp
l.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:2
04)
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(ApplicationDispatch
er.java:575)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
20)
at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395)
at

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message