Re: [struts 1.1-b3] problem with server side validation

2003-02-18 Thread Vic Cekvenich
Validator works for me with a late nightly build. Last week I did a 
class, and every student got server and client side validation working.
.V
Martins Stephane wrote:
Hello

Since I've migrated to struts 1.1-b3, I have serious problems with the 
validator included in struts.
Both my webapp and struts-validator.war (from struts package) provoke java 
exceptions.

When I desactivate javascript from my browser (IE 5.5) to check server-side 
validation, I get the current error :

java.lang.NullPointerException at 
java.util.StringTokenizer.(StringTokenizer.java:119)
 at java.util.StringTokenizer.(StringTokenizer.java:135) at 
org.apache.commons.validator.Validator.validateField(Validator.java:502)
 at org.apache.commons.validator.Validator.validate(Validator.java:551)
 at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
 at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcess  
or.java:912)
 at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:  
255) at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


I've tried :
*	JDK 1.4 and 1.3
*	Tomcat 4.1.12 and 4.1.18
*	and the last nightly build of common-validator.jar

Any ideas ?


Thanks



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




RE: [struts 1.1-b3] problem with server side validation

2003-02-18 Thread Martins Stephane
Thanks for your answer it makes me optimistic...

Can you detail what are your JDK version and your tomcat release ?

I'm using the Struts-validator.war from struts 1.1-b3 build.
I've noticed that all javascript is working well.
If I extend my validate in the actionform, these validations are done after Javascript 
(which is ok).

But there's this exception when the rules from my validation.xml are done from 
server-side.
I have no problem with struts 1.0.2 with the validator 1.0 ...


-Message d'origine-
De: Vic Cekvenich [SMTP:[EMAIL PROTECTED]]
Date:   mardi 18 fevrier 2003 13:26
A:  [EMAIL PROTECTED]
Objet:  Re: [struts 1.1-b3] problem with server side validation

Validator works for me with a late nightly build. Last week I did a 
class, and every student got server and client side validation working.
.V
Martins Stephane wrote:
 Hello
 
 Since I've migrated to struts 1.1-b3, I have serious problems with the 
 validator included in struts.
 Both my webapp and struts-validator.war (from struts package) provoke java 
 exceptions.
 
 When I desactivate javascript from my browser (IE 5.5) to check server-side 
 validation, I get the current error :
 
 java.lang.NullPointerException at 
 java.util.StringTokenizer.(StringTokenizer.java:119)
  at java.util.StringTokenizer.(StringTokenizer.java:135) at 
 org.apache.commons.validator.Validator.validateField(Validator.java:502)
  at org.apache.commons.validator.Validator.validate(Validator.java:551)
  at 
 org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
  at 
 org.apache.struts.action.RequestProcessor.processValidate(RequestProcess  
 or.java:912)
  at 
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:  
 255) at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
 
 I've tried :
 * JDK 1.4 and 1.3
 * Tomcat 4.1.12 and 4.1.18
 * and the last nightly build of common-validator.jar
 
 Any ideas ?
 
 
 Thanks



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


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




Re: [struts 1.1-b3] problem with server side validation

2003-02-18 Thread Vic Cekvenich


Martins Stephane wrote:

Thanks for your answer it makes me optimistic...

Can you detail what are your JDK version and your tomcat release ?

Latest of both, 1.41 and 4.18


I'm using the Struts-validator.war from struts 1.1-b3 build.
I've noticed that all javascript is working well.
If I extend my validate in the actionform, these validations are done after Javascript (which is ok).

But there's this exception when the rules from my validation.xml are done from server-side.
I have no problem with struts 1.0.2 with the validator 1.0 ...


-Message d'origine-
De:	Vic Cekvenich [SMTP:[EMAIL PROTECTED]]
Date:	mardi 18 fevrier 2003 13:26
A:	[EMAIL PROTECTED]
Objet:	Re: [struts 1.1-b3] problem with server side validation

Validator works for me with a late nightly build. Last week I did a 
class, and every student got server and client side validation working.
.V
Martins Stephane wrote:

Hello

Since I've migrated to struts 1.1-b3, I have serious problems with the 
validator included in struts.
Both my webapp and struts-validator.war (from struts package) provoke java 
exceptions.

When I desactivate javascript from my browser (IE 5.5) to check server-side 
validation, I get the current error :

java.lang.NullPointerException at 
java.util.StringTokenizer.(StringTokenizer.java:119)
at java.util.StringTokenizer.(StringTokenizer.java:135) at 
org.apache.commons.validator.Validator.validateField(Validator.java:502)
at org.apache.commons.validator.Validator.validate(Validator.java:551)
at 
org.apache.struts.validator.ValidatorForm.validate(ValidatorForm.java:152)
at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcess  
or.java:912)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:  
255) at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


I've tried :
*	JDK 1.4 and 1.3
*	Tomcat 4.1.12 and 4.1.18
*	and the last nightly build of common-validator.jar

Any ideas ?


Thanks




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




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