Re: Validator, HELP

2003-01-31 Thread Swish

Oops sorry if I wasn't clear.  The actual message returned is correct, "Start date is 
not a date"  The actual error message is ok, I just don't want the validator to look 
at the field if it's null.  I went so far as to make sure that the get method returns 
a null if the length of the field is < 1, but that had no effect.  Any other ideas?
 [EMAIL PROTECTED] wrote:Looks like 

field.startDate=Date

is missing in the resource bundle.

--Mahender

Hi All, 

Got a question about configuring the validator. I have a date field that I
would like 
validated only if it has been entered. I have the following entry in the 
validation.xml




datePatternStrict
MM/dd/




As it stands, if the user does not enter a date, i get back an error saying that
the 
date "is not a date." 

Also, where can I find some docs on the Validator other then the javadoc, cause the 
javadocs, ahm, well just don't seem to answer the questions I have?

Thanks!!!

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



-
Post your free ad now! Yahoo! Canada Personals



RE: Validator, HELP

2003-01-30 Thread Swish

Thanks for the link, but I still don't see what I did wrong :(  Any hints?  
 Todd Pierce <[EMAIL PROTECTED]> wrote:This might help:

http://home.earthlink.net/~dwinterfeldt/

-Original Message-
From: Swish [mailto:[EMAIL PROTECTED]]
Sent: Friday, 31 January 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: Validator, HELP



Hi All, 

Got a question about configuring the validator. I have a date field that I
would like validated only if it has been entered. I have the following
entry in the validation.xml




datePatternStrict
MM/dd/




As it stands, if the user does not enter a date, i get back an error saying
that the date "is not a date." 

Also, where can I find some docs on the Validator other then the javadoc,
cause the javadocs, ahm, well just don't seem to answer the questions I
have?

Thanks!!!



-
Post your free ad now! Yahoo! Canada Personals

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



-
Post your free ad now! Yahoo! Canada Personals



RE: Validator, HELP

2003-01-30 Thread Todd Pierce
This might help:

http://home.earthlink.net/~dwinterfeldt/

-Original Message-
From: Swish [mailto:[EMAIL PROTECTED]]
Sent: Friday, 31 January 2003 10:28 AM
To: [EMAIL PROTECTED]
Subject: Validator, HELP



Hi All, 

Got a question about configuring the validator.  I have a date field that I
would like validated only if it has been entered.  I have the following
entry in the validation.xml

   


 datePatternStrict
 MM/dd/

   


As it stands, if the user does not enter a date, i get back an error saying
that the date "is not a date."  

Also, where can I find some docs on the Validator other then the javadoc,
cause the javadocs, ahm, well just don't seem to answer the questions I
have?

Thanks!!!



-
Post your free ad now! Yahoo! Canada Personals

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




RE: Validator help

2002-04-20 Thread Galbreath, Mark

No problemo.  I'm in the #%$@$#!! office on a Saturday again, anyway.  :-(

-Original Message-
From: Jack Zakarian [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 20, 2002 2:43 PM
To: Struts Users Mailing List
Subject: RE: Validator help


Sorry Mark
I sent my request before I read the rest of my mail.

I got the code.

Thanks

Jack

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




RE: Validator help

2002-04-20 Thread Jack Zakarian

Sorry Mark
I sent my request before I read the rest of my mail.

I got the code.

Thanks

Jack
[EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 20, 2002 8:25 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator help


I found using the Struts validation cumbersome and unpredictable, so I just
wrote a custom tag to validate my input forms.  If anyone is interested,
I'll post the code.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for
org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


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

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



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




RE: Validator help

2002-04-20 Thread Jack Zakarian

Mark

I'm interested.

Jack
[EMAIL PROTECTED]

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 20, 2002 8:25 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator help


I found using the Struts validation cumbersome and unpredictable, so I just
wrote a custom tag to validate my input forms.  If anyone is interested,
I'll post the code.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for
org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


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

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



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




RE: Validator help

2002-04-20 Thread Parmar, Dipakkumar

Mark, you are right about struts validation.
Please post your code.

Thanks
Deepak

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 20, 2002 9:25 AM
To: 'Struts Users Mailing List'
Subject: RE: Validator help


I found using the Struts validation cumbersome and unpredictable, so I just
wrote a custom tag to validate my input forms.  If anyone is interested,
I'll post the code.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for
org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


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

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


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




RE: Validator help

2002-04-20 Thread Galbreath, Mark

I found using the Struts validation cumbersome and unpredictable, so I just
wrote a custom tag to validate my input forms.  If anyone is interested,
I'll post the code.

Mark

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for
org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Validator help

2002-04-19 Thread Honman Lee

Can anyone help? I am trying to use the validation with Struts 1.0 and I get this 
message 

javax.servlet.jsp.JspException: Can't get definitions factory from context.

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.processDefinitionName(java.lang.String)

s1.struts.taglib.component.InsertTag$TagHandler 
s1.struts.taglib.component.InsertTag.createTagHandler()

int s1.struts.taglib.component.InsertTag.doStartTag()

when I try to add the following to my web.xml:
  
  
validator
com.wintecinc.struts.action.ValidatorServlet

  config
  /WEB-INF/validation.xml


  debug
  1

2
  

 -Original Message-
From:   Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, April 19, 2002 3:06 PM
To: Struts Users Mailing List
Subject:        RE: Validator help

I don't think so i need to initialize the validator in the web.xml file if i
use 1.1b1.
I did plug In Configuration for validator in my struts-config.xml. Please
see my original message.

Deepak

-Original Message-
From: Honman Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:58 PM
To: Struts Users Mailing List
Subject: RE: Validator help


I am having issues with my validation too.  Did you initialize the validator
in the web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


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


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


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




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




RE: Validator help

2002-04-19 Thread Parmar, Dipakkumar

I don't think so i need to initialize the validator in the web.xml file if i
use 1.1b1.
I did plug In Configuration for validator in my struts-config.xml. Please
see my original message.

Deepak

-Original Message-
From: Honman Lee [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 5:58 PM
To: Struts Users Mailing List
Subject: RE: Validator help


I am having issues with my validation too.  Did you initialize the validator
in the web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


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


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


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




RE: Validator help

2002-04-19 Thread Honman Lee

I am having issues with my validation too.  Did you initialize the validator in the 
web.xml file?

-Original Message-
From: Parmar, Dipakkumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 19, 2002 2:48 PM
To: Struts Users Mailing List
Subject: Validator help


Hi,

I'm having really hard time to figure out why the validator is not working.
Here is the summary what i did:

1. I tried to produce debug/error messages for org.apache.commons.validator
but no luck.
(see thread "How can i turn on debug for org.apache.commons.validator")

2. I override validate method in my ActionForm and put the same code from
validate method in validate.java(org.apache.commons.validator). I found out
that my validation.xml file is not initialize. I don't know why. I follow
validator sample come with struts. I'm using 1.1b1.

here is all required info if any one interested helping me out.

// CRTypeForm.java
public class CRTypeForm extends ValidatorForm {

// CR Type name
private String crTypeName;

public String getCrTypeName() {
logger.debug("CRTypeForm:getCrTypeName" + crTypeName);
return crTypeName;
}

public void setCrTypeName(String crTypeName) {
logger.debug("CRTypeForm:setCrTypeName" + crTypeName);
this.crTypeName = crTypeName;
}
}


// struts-config.xml



http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>




  
  




  


  
  



   


  

  

  

  

  
  

  



# Validation.xml file

   
  
 
 
 
 
   maxlength
   50
 
 
  
   


regards,
Deepak


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: