struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wendy Smoak <>
Subject RE: Validator validates too early (was RE: Validator won't valida te single required field)
Date Fri, 24 Jan 2003 23:42:13 GMT
> If You are using POST method for sending request (and probably yes) I
> would exchange Your code for this one:
> if (request.getMethod().equals("POST")) {
>    return super.validate( mapping, request );
> } else {
>   return null;
> }

Interesting... would equalsIgnoreCase be more appropriate, or are you sure
it'll always be in upper case?  My jsp currently has:
  <html-el:form action="/chooseProfile">
which turns into:
  <form name="chooseProfileForm" method="post"
so I'm guessing that 'post' will be lowercase.

Thanks!  This is a much better solution, so I can change the name of the
Submit button without breaking it.

Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management 

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