struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <Wendy.Sm...@asu.edu>
Subject RE: Validation on first page impression
Date Thu, 17 Jul 2003 14:31:03 GMT
> I'm wondering how to suppress form validation when a form is  shown the 
> first time to the user. 

Search the list archives, this has come up before.  I override the validate
method and decide whether or not to call super.validate().  On the first
page view, the form will not have been "submitted" so you can check whether
the request was POSTed, put a hidden field on the form and look for it in
the request, etc.

Turning off validation is certainly one way to do it!

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message