Re: Validating user inputs

2003-04-03 Thread Steve Stair
> My problem is that there is only a server-side validation for the
minlength-property. If nothing is entered in the password-field,
Javascript-validation (required) works fine (i.e > the validation is
done on client-side). What am I doing wrong?
> Thanks for help!
>
> Stefan

First thing I would try is view the source of the generated HTML page
in your browser.
Are all the function definitions there?  Try saving that page as an
HTML file, and modifying
the validateLogonForm to popup an alert window, so you can see if the
method is being
called on form submittal.  Then go further downstream in the execution,
trying to find where
the code isn't doing what you expect.  If you are using IE, you might
want to turn on
the script debugging.  You can also try loading the same page in
Netscape, since it has
better integrated script debugging.


--
Steve Stair

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Validating user inputs

2003-04-03 Thread Stefan=20Krompa=DF
> 2) Where is the form definition from your struts-config.xml?


  



  


Greetings,

Stefan
__
Jetzt 52 verschiedene Briefpapiere fur Ihre E-Mails bei
WEB.DE FreeMail - http://freemail.web.de/features/?mc=021140


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Validating user inputs

2003-04-03 Thread Steve Stair
A couple minor points

1) If your validator-rules.xml validation definition has
depends="required",
then you don't need to have it in the validation.xml as well.

2) Where is the form definition from your struts-config.xml?


--
Steve Stair


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Validating user inputs

2003-04-03 Thread Stefan=20Krompa=DF
Hi!

Im using Struts 1.1 RC1 and I want to validate user input. I have a password field 
that should have at least 6 characters. Therefore, I use the following validator-rule 
in validator-rules.xml:


  


 
 
  
  
  


The validator is used in validation.xml like this:


  

  
  


  
minlength
6
  
   

  


My logon.jsp:

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


  

  


  
:
  
  
 
  

  
  


  


Last but not least, the entry in the struts-config.xml:


  


My problem is that there is only a server-side validation for the minlength-property. 
If nothing is entered in the password-field, Javascript-validation (required) works 
fine (i.e the validation is done on client-side). What am I doing wrong?
Thanks for help!

Stefan
__
Mit der Auslands-SMS von WEB.DE FreeMail erreichen Sie Ihre Freunde auf
der ganzen Welt - http://freemail.web.de/features/?mc=021171


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]