You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ha...@alcatel.com.au on 2006/01/20 01:39:00 UTC
error messages doesn't appear if validate is called programatically
Hi,
I have started using struts recently. I don't want to use defaul
validation checking
so I changed struts-config.xml
.
.
<action path="/SomethingAction" ...
.
.
.
validate="false"
.
.
In the SomethingAction class's execute method I call
if (form.validate().size>0 )
// forward to input page
In auto validation case error messages I configured appears on Input JSP
but if validate="false" as I configured above then messages soesn't
appear
on the Input JSP.
Could anyone point me to some documents or provide hint about this
problem?
Thanks and regards
Hakan
This email may contain privileged/confidential information. You may not copy or disclose this email to anyone without the written permission of the sender. If you have received this email in error please kindly delete this message and notify the sender. Opinions expressed in this email are those of the sender and not necessarily the opinions of the employer.
This email and any attached files should be scanned to detect viruses. No liability will be accepted by the employer for loss or damage (whether caused by negligence or not) as a result of email transmission.
Re: error messages doesn't appear if validate is called programatically
Posted by Michael Jouravlev <jm...@gmail.com>.
On 1/19/06, Hakan.Barisik@alcatel.com.au <Ha...@alcatel.com.au> wrote:
>
> Hi,
>
> I have started using struts recently.
Then you'd rather use Struts-User mailing list. This is a Struts
Developers' list.
> I don't want to use defaul
> validation checking
> so I changed struts-config.xml
>
> .
> .
> <action path="/SomethingAction" ...
> .
> .
> .
> validate="false"
> .
> .
>
>
> In the SomethingAction class's execute method I call
>
> if (form.validate().size>0 )
> // forward to input page
>
>
>
> In auto validation case error messages I configured appears on Input JSP
> but if validate="false" as I configured above then messages soesn't
> appear
> on the Input JSP.
>
> Could anyone point me to some documents or provide hint about this
> problem?
http://struts.apache.org/struts-doc-1.2.7/api/org/apache/struts/action/Action.html#saveErrors(javax.servlet.http.HttpServletRequest,%20org.apache.struts.action.ActionMessages)
Michael.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org