Re: Clientside Javascript Validator Problem

2003-12-04 Thread Clark Kent
Neil,
 
In the SearchForm, I am curious if it extends ValidatorForm, try to extend ActionForm 
instead to have it to perform client side validation.  Code and configuration appears 
to be fine.
 
Good Luck,
Allen Martis.

Neil Mitchell <[EMAIL PROTECTED]> wrote:
Hi all

I am unable to get validation working in the clientside. It's fine with serverside but 
will not validate on the clientside.
Here are my config files and jsp any help would be welcomed. Cheers in advance

JSP






alink="#ff00ff" background="foo.gif">





   








Animal


Jockey


Trainer


Owner








struts-config



"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>

  This is the Struts configuration file for the example application,
  using the proposed new syntax.
 -->








dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm"> 





dynamic="true"
type="org.apache.struts.action.DynaActionForm">















path="/quickSearch"
type="com.arena.skylla.struts.research.actions.QuickSearchAction"
scope="request"
name="searchForm"
input="/researchHome.jsp"
validate="true">



path="/quickSearchResult"
type="com.arena.skylla.struts.research.actions.QuickSearchResultAction"
scope="request"
name="searchResultsForm"
validate="false">















  Configuration == -->



value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>





validation.xml



"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

 Validation Rules for the Struts Example Web Application
 
 $Id: validation.xml,v 1.8 2003/05/25 22:51:20 dgraham Exp $
 -->








depends="required, minlength">

resource="false"/>

minlength
3











Neil Mitchell
Senior Developer

E-mail: [EMAIL PROTECTED] 
Office: +44 (0)1483 306660
Fax: +44 (0)1483 306670
Web: www.arenaleisureplc.com 
Arena Online Services Ltd, Alexandra House, 1-5 Alexandra Terrace, Guildford Surrey, 
GU1 3DA
**
This e-mail and any attachments may be confidential and/or legally privileged. If you 
are not a named addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. Although Arena Online routinely screens for viruses, addressees should 
check this e-mail and attachment for any viruses. Arena Online makes no representation 
or warranty as to the absence of viruses in this e-mail or any attachments. Please 
note that to ensure regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our server(s).



Neil Mitchell
Senior Developer

E-mail: [EMAIL PROTECTED] 
Office: +44 (0)1483 306660
Fax: +44 (0)1483 306670
Web: www.arenaleisureplc.com 
Arena Online Services Ltd, Alexandra House, 1-5 Alexandra Terrace, Guildford Surrey, 
GU1 3DA
**
This e-mail and any attachments may be confidential and/or legally privileged. If you 
are not a named addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. Although Arena Online routinely screens for viruses, addressees should 
check this e-mail and attachment for any viruses. Arena Online makes no representation 
or warranty as to the absence of viruses in this e-mail or any attachments. Please 
note that to ensure regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our server(s).



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


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now

Clientside Javascript Validator Problem

2003-12-04 Thread Neil Mitchell
 Hi all
 
 I am unable to get validation working in the clientside. It's fine with serverside 
but will not validate on the clientside.
 Here are my config files and jsp any help would be welcomed. Cheers in advance
 
 JSP
 <[EMAIL PROTECTED] file="includes/struts_imports.jsp" %>
 
 
   

   
   
 
   
   
 
   
 
   
   
 
   
   
 
   Animal
 
 
   Jockey
 
 
   Trainer
 
 
   Owner
 

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

 
   
   
 
 
 
 
   
   
 
 
   
 
   
   
 
   
 
   
   
 
 
   
 
   
   
   
 
   
  
 
 

 
   
 
 
 
 
   
   
 
   
 
   
 
   
 
 
 
 validation.xml
 
 
 
 http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 minlength
 3
 
 
 
 
 
 
 
 
 
   
 
Neil Mitchell
Senior Developer
 
E-mail: [EMAIL PROTECTED] 
Office: +44 (0)1483 306660
Fax: +44 (0)1483 306670
Web: www.arenaleisureplc.com 
Arena Online Services Ltd, Alexandra House, 1-5 Alexandra Terrace, Guildford Surrey, 
GU1 3DA
**
This e-mail and any attachments may be confidential and/or legally privileged. If you 
are not a named addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. Although Arena Online routinely screens for viruses, addressees should 
check this e-mail and attachment for any viruses. Arena Online makes no representation 
or warranty as to the absence of viruses in this e-mail or any attachments. Please 
note that to ensure regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our server(s).
 


Neil Mitchell
Senior Developer

E-mail: [EMAIL PROTECTED] 
Office: +44 (0)1483 306660
Fax: +44 (0)1483 306670
Web: www.arenaleisureplc.com 
Arena Online Services Ltd, Alexandra House, 1-5 Alexandra Terrace, Guildford Surrey, 
GU1 3DA
**
This e-mail and any attachments may be confidential and/or legally privileged. If you 
are not a named addressee you must not use, disclose, distribute, copy, print or rely 
on this e-mail. Although Arena Online routinely screens for viruses, addressees should 
check this e-mail and attachment for any viruses. Arena Online makes no representation 
or warranty as to the absence of viruses in this e-mail or any attachments. Please 
note that to ensure regulatory compliance and for the protection of our clients and 
business, we may monitor and read e-mails sent to and from our server(s).



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



RE: Validator problem: html:messages tag and NullPointerException

2003-10-01 Thread Davide Bruzzone
Doh! Answered my own question:

The page/form in question is using a combination of custom (i.e. using
the validate method) and Validator validation, and one of the message
keys in my own validate method was incorrect (i.e. The method was
looking for a key that didn't exist).

Cheers...

Dave

-Original Message-
From: Davide Bruzzone 
Sent: Tuesday, September 30, 2003 6:50 PM
To: Struts Users Mailing List
Subject: Validator problem: html:messages tag and NullPointerException


Hello...

I'm using the Struts Validator, and have come across some strange
behavior:

On only one of the pages that uses the Validator (Not all of them...
Some of the pages that use the Validator work fine, which makes the
problem even more confusing), the following code causes a
NullPointerException...





Here's the exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:389)
at
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.j
ava:229)
at
org.apache.struts.taglib.html.MessagesTag.doAfterBody(MessagesTag.java:3
15)
at
org.apache.jsp.programPurchase$jsp._jspService(programPurchase$jsp.java:
278)
...

My research so far has turned up a posting that suggests that the
problem has been fixed in Struts RC1 (which I am already using). Again,
what's strange about this is that it only happens on one of the pages
that uses the Validator. The other pages that use the Validator work
fine.

Has anyone seen this problem by any chance? Does anyone have any
suggestions regarding which rock(s) I should look under? Any suggestions
would be greatly appreciated...

TIA

Dave Bruzzone

-
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]



Validator problem: html:messages tag and NullPointerException

2003-09-30 Thread Davide Bruzzone
Hello...

I'm using the Struts Validator, and have come across some strange
behavior:

On only one of the pages that uses the Validator (Not all of them...
Some of the pages that use the Validator work fine, which makes the
problem even more confusing), the following code causes a
NullPointerException...





Here's the exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:389)
at
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.j
ava:229)
at
org.apache.struts.taglib.html.MessagesTag.doAfterBody(MessagesTag.java:3
15)
at
org.apache.jsp.programPurchase$jsp._jspService(programPurchase$jsp.java:
278)
...

My research so far has turned up a posting that suggests that the
problem has been fixed in Struts RC1 (which I am already using). Again,
what's strange about this is that it only happens on one of the pages
that uses the Validator. The other pages that use the Validator work
fine.

Has anyone seen this problem by any chance? Does anyone have any
suggestions regarding which rock(s) I should look under? Any suggestions
would be greatly appreciated...

TIA

Dave Bruzzone

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



Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote:
I think it would be better if we prompt all the errors at once to the 
user.  The user should not wait till entering the valid fields and then 
check for the validity of the entered values.

The "Required" condition should take the precedence over all other 
condition for that *particular Field*. I too agree this , as there is 
not point in checking the length, when the user fails to enter the value 
at all. But my concern is,  why should we wait till entering all *other* 
required fields, for checking the length of a Field.

Can i do Complex validations,  using the predefined rules like 
"required", "range" .. etc .. ?  Should i write my own rules by 
duplicating the predefined ones ?
That is your preference, but I feel the way it is currently done is 
best. For the javascript validation on the client-side, this is 
definitely better because the errors appear in a small pop-up which you 
have to click away before you can correct the errors, i.e. the user has 
to memorise the errors before correcting them.

On the server-side I agree it is probably preferable to show all errors 
at once.

Adam

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


Re: Validator Problem when using "Required"

2003-07-24 Thread R Balaji


Adam Hardy wrote:

R Balaji wrote:

If i fail to give the userName it is prompting, that userName is 
required. But if i input only "2" characters for the userName, while 
all other ( some of the other ) fields are empty it prompts only 
about all other required fields, and not validating the *minlength* 
condition until all other required conditions get satisfied. I feel 
it should also validate the userName and prompt that the length is 
less than 5 chatacters.

is there anything to define the precedence in the validation.xml ? .. 
will the minlength be validated only if all the required get 
satisfied. ??


I'm not sure but that's the way my validation functions as well.  I 
imagine the validator has certain rules such as this built in so that 
you don't get overwhelmed with validation messages when you have 
complex validations to do.

How can that be a problem though? 
I think it would be better if we prompt all the errors at once to the 
user.  The user should not wait till entering the valid fields and then 
check for the validity of the entered values.

The "Required" condition should take the precedence over all other 
condition for that *particular Field*. I too agree this , as there is 
not point in checking the length, when the user fails to enter the value 
at all. But my concern is,  why should we wait till entering all *other* 
required fields, for checking the length of a Field.

Can i do Complex validations,  using the predefined rules like 
"required", "range" .. etc .. ?  Should i write my own rules by 
duplicating the predefined ones ?



Adam

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


Re: Validator Problem when using "Required"

2003-07-24 Thread Adam Hardy
R Balaji wrote:
If i fail to give the userName it is prompting, that userName is 
required. But if i input only "2" characters for the userName, while all 
other ( some of the other ) fields are empty it prompts only about all 
other required fields, and not validating the *minlength* condition 
until all other required conditions get satisfied. I feel it should also 
validate the userName and prompt that the length is less than 5 chatacters.

is there anything to define the precedence in the validation.xml ? .. 
will the minlength be validated only if all the required get satisfied. ??
I'm not sure but that's the way my validation functions as well.  I 
imagine the validator has certain rules such as this built in so that 
you don't get overwhelmed with validation messages when you have complex 
validations to do.

How can that be a problem though?

Adam

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


Re: Validator Problem when using "Required"

2003-07-24 Thread will . durrant
Hi, I think i'm having a similar problem with struts validation in that 
there seems to be a two stage validation process. All 'required' fields 
seem to be validated first and only once they are resolved then the min 
and max length validation is processed.

My validation.xml is as follows;


   
 
  
 
  
 
 
 
  
  
  
minlength
5
  
 
 
 
  
  

  maxlength
  10
 
 
 
  

   


Is this the way struts validation works or am I missing something?

Will Durrant
Software Engineer
Digital Steps Limited 



Validator Problem when using "Required"

2003-07-23 Thread R Balaji
Hi,

I am using Struts Validator for validating my Application. i am using 
"required"  for many of the fields and using minlength and maxlength for 
the userName field.

my validation.xml reads like this,

/Ex :

 
 
 
 
 




   
minlength
5

   
maxlength
10

 
 
 
 /
If i fail to give the userName it is prompting, that userName is 
required. But if i input only "2" characters for the userName, while all 
other ( some of the other ) fields are empty it prompts only about all 
other required fields, and not validating the *minlength* condition 
until all other required conditions get satisfied. I feel it should also 
validate the userName and prompt that the length is less than 5 chatacters.

is there anything to define the precedence in the validation.xml ? .. 
will the minlength be validated only if all the required get satisfied. ??

please Help me.

TIA,

Balaji



Re: Validator Problem

2003-07-22 Thread Adam Hardy
Sorry! I did misunderstand you. DIdn't read the message. It works like 
that now. Thanks!

Canning, Chuck wrote:
You are getting the null value because the error message expects the
maxLength arg to be arg1 not arg2. Your file should read

 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 

Chuck

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: Validator Problem
Hi Siva,

on a related problem, can you see what is wrong this the following xml, 
because I get the error message "title cannot be less than 2 characters" 
for the minlength validation, but I get "title cannot be more than null 
characters" for the maxlength validation.


 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 

TIA
Adam
Siva wrote:

Hi prashant,

In the validation.xml file, you have to give a name for the args. (how can
it

know that for what validation it has to use the args ?) So the arg0 shuld
also

contain a property called name="required"

Please let me know whether it works,

Sivakumar



[EMAIL PROTECTED] wrote:



Hi,
I am using struts validator in the logon.jsp of my application.  If I
don't

enter the username & click on submit the message displayed is "null is
required". Instead it should be "Username is required".
The part of the code in the validator-rules.xml is correct. I have given
msg="errors.required"
Also I have given "errors.required={0} is required."  &
"prompt.username=Username" in the ApplicationResources.properties file.
Still it is giving the same alert as "null is required" instead of
"Username" is required.
The corresponding part in the validation.xml is

  
  
  
  
  
  maxlength
  16
  
  
  minlength
  3
  
  
Has anybody experienced this problem earlier ?

prashant.


Name: InterScan_SafeStamp.txt
 InterScan_SafeStamp.txtType: text/plain (text/plain)
Encoding: 7bit

-
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]



-
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]



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


Re: Validator Problem

2003-07-22 Thread Adam Hardy
OK, tried that but struts wasn't having it.

By that logic I would have got the wrong number in the validation 
message for minlength.

Or did I misunderstand what you mean?

Canning, Chuck wrote:
You are getting the null value because the error message expects the
maxLength arg to be arg1 not arg2. Your file should read

 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 

Chuck

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: Validator Problem
Hi Siva,

on a related problem, can you see what is wrong this the following xml, 
because I get the error message "title cannot be less than 2 characters" 
for the minlength validation, but I get "title cannot be more than null 
characters" for the maxlength validation.


 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 

TIA
Adam
Siva wrote:

Hi prashant,

In the validation.xml file, you have to give a name for the args. (how can
it

know that for what validation it has to use the args ?) So the arg0 shuld
also

contain a property called name="required"

Please let me know whether it works,

Sivakumar



[EMAIL PROTECTED] wrote:



Hi,
I am using struts validator in the logon.jsp of my application.  If I
don't

enter the username & click on submit the message displayed is "null is
required". Instead it should be "Username is required".
The part of the code in the validator-rules.xml is correct. I have given
msg="errors.required"
Also I have given "errors.required={0} is required."  &
"prompt.username=Username" in the ApplicationResources.properties file.
Still it is giving the same alert as "null is required" instead of
"Username" is required.
The corresponding part in the validation.xml is

  
  
  
  
  
  maxlength
  16
  
  
  minlength
  3
  
  
Has anybody experienced this problem earlier ?

prashant.


Name: InterScan_SafeStamp.txt
 InterScan_SafeStamp.txtType: text/plain (text/plain)
Encoding: 7bit

-
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]



-
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]



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


RE: Validator Problem

2003-07-22 Thread Canning, Chuck
You are getting the null value because the error message expects the
maxLength arg to be arg1 not arg2. Your file should read


 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 


Chuck

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: Validator Problem


Hi Siva,

on a related problem, can you see what is wrong this the following xml, 
because I get the error message "title cannot be less than 2 characters" 
for the minlength validation, but I get "title cannot be more than null 
characters" for the maxlength validation.


 
 
 
 
   maxlength
   16
 
 
   minlength
   2
 


TIA
Adam

Siva wrote:
> Hi prashant,
> 
> In the validation.xml file, you have to give a name for the args. (how can
it
> know that for what validation it has to use the args ?) So the arg0 shuld
also
> contain a property called name="required"
> 
> Please let me know whether it works,
> 
> Sivakumar
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> 
>>Hi,
>>I am using struts validator in the logon.jsp of my application.  If I
don't
>>enter the username & click on submit the message displayed is "null is
>>required". Instead it should be "Username is required".
>>The part of the code in the validator-rules.xml is correct. I have given
>>msg="errors.required"
>>Also I have given "errors.required={0} is required."  &
>>"prompt.username=Username" in the ApplicationResources.properties file.
>>Still it is giving the same alert as "null is required" instead of
>>"Username" is required.
>>
>>The corresponding part in the validation.xml is
>>
>>>depends="required, minlength,maxlength">
>>
>>>   resource="false"/>
>>>   resource="false"/>
>>
>>maxlength
>>16
>>
>>
>>minlength
>>3
>>
>>
>>
>>Has anybody experienced this problem earlier ?
>>
>>prashant.
>>
>>  
>>  Name: InterScan_SafeStamp.txt
>>   InterScan_SafeStamp.txtType: text/plain (text/plain)
>>  Encoding: 7bit
>>
>>  
>>-
>>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]
> 
> 


-
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: Validator Problem

2003-07-22 Thread Adam Hardy
Hi Siva,

on a related problem, can you see what is wrong this the following xml, 
because I get the error message "title cannot be less than 2 characters" 
for the minlength validation, but I get "title cannot be more than null 
characters" for the maxlength validation.






  maxlength
  16


  minlength
  2


TIA
Adam
Siva wrote:
Hi prashant,

In the validation.xml file, you have to give a name for the args. (how can it
know that for what validation it has to use the args ?) So the arg0 shuld also
contain a property called name="required"
Please let me know whether it works,

Sivakumar



[EMAIL PROTECTED] wrote:


Hi,
I am using struts validator in the logon.jsp of my application.  If I don't
enter the username & click on submit the message displayed is "null is
required". Instead it should be "Username is required".
The part of the code in the validator-rules.xml is correct. I have given
msg="errors.required"
Also I have given "errors.required={0} is required."  &
"prompt.username=Username" in the ApplicationResources.properties file.
Still it is giving the same alert as "null is required" instead of
"Username" is required.
The corresponding part in the validation.xml is

   
   
   
   
   
   maxlength
   16
   
   
   minlength
   3
   
   
Has anybody experienced this problem earlier ?

prashant.

 
 Name: InterScan_SafeStamp.txt
  InterScan_SafeStamp.txtType: text/plain (text/plain)
 Encoding: 7bit
 
-
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]



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


Re: Validator Problem

2003-07-22 Thread prashant . mdesai

thanks a lot siva.
It worked 

prashant..




   

Siva   

<[EMAIL PROTECTED]> To: Struts Users Mailing List 
<[EMAIL PROTECTED]>
Sent by: cc:   

[EMAIL PROTECTED]Subject: Re: Validator Problem

entnet.com 

   

   

07/22/03 03:47 PM  

Please respond to "Struts Users

Mailing List"  

   

   





Hi prashant,

In the validation.xml file, you have to give a name for the args. (how can
it
know that for what validation it has to use the args ?) So the arg0 shuld
also
contain a property called name="required"

Please let me know whether it works,

Sivakumar



[EMAIL PROTECTED] wrote:

> Hi,
> I am using struts validator in the logon.jsp of my application.  If I
don't
> enter the username & click on submit the message displayed is "null is
> required". Instead it should be "Username is required".
> The part of the code in the validator-rules.xml is correct. I have given
> msg="errors.required"
> Also I have given "errors.required={0} is required."  &
> "prompt.username=Username" in the ApplicationResources.properties file.
> Still it is giving the same alert as "null is required" instead of
> "Username" is required.
>
> The corresponding part in the validation.xml is
>
>  depends="required, minlength,maxlength">
> 
> resource="false"/>
> resource="false"/>
> 
> maxlength
> 16
> 
> 
> minlength
> 3
> 
> 
>
> Has anybody experienced this problem earlier ?
>
> prashant.
>
>

>   Name: InterScan_SafeStamp.txt
>InterScan_SafeStamp.txtType: text/plain (text/plain)
>   Encoding: 7bit
>
>

> -
> 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]






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



Re: Validator Problem

2003-07-22 Thread Siva
Hi prashant,

In the validation.xml file, you have to give a name for the args. (how can it
know that for what validation it has to use the args ?) So the arg0 shuld also
contain a property called name="required"

Please let me know whether it works,

Sivakumar



[EMAIL PROTECTED] wrote:

> Hi,
> I am using struts validator in the logon.jsp of my application.  If I don't
> enter the username & click on submit the message displayed is "null is
> required". Instead it should be "Username is required".
> The part of the code in the validator-rules.xml is correct. I have given
> msg="errors.required"
> Also I have given "errors.required={0} is required."  &
> "prompt.username=Username" in the ApplicationResources.properties file.
> Still it is giving the same alert as "null is required" instead of
> "Username" is required.
>
> The corresponding part in the validation.xml is
>
>  depends="required, minlength,maxlength">
> 
> resource="false"/>
> resource="false"/>
> 
> maxlength
> 16
> 
> 
> minlength
> 3
> 
> 
>
> Has anybody experienced this problem earlier ?
>
> prashant.
>
>   
>   Name: InterScan_SafeStamp.txt
>InterScan_SafeStamp.txtType: text/plain (text/plain)
>   Encoding: 7bit
>
>   
> -
> 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]



Validator Problem

2003-07-22 Thread prashant . mdesai
Hi,
I am using struts validator in the logon.jsp of my application.  If I don't
enter the username & click on submit the message displayed is "null is
required". Instead it should be "Username is required".
The part of the code in the validator-rules.xml is correct. I have given
msg="errors.required"
Also I have given "errors.required={0} is required."  &
"prompt.username=Username" in the ApplicationResources.properties file.
Still it is giving the same alert as "null is required" instead of
"Username" is required.

The corresponding part in the validation.xml is






maxlength
16


minlength
3



Has anybody experienced this problem earlier ?


prashant.




** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file Username" in the ApplicationResources.properties 
file.

Scanned by InterScan Virus wall
* End of message ***


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

Validator problem?

2003-07-21 Thread Cyber.Zombie
While I'm waiting for an answer to my OT: ?, I figured I'd come out and 
ask the question that's been bothering me for a few days.  First, the setup:

Form:  Contains a number of fields.  Indirectly extends ValidatorForm.  
There are some processes in place not necessary for this discussion, but 
cool enough for me to talk about.  I use EJBGen to take the Entity bean 
and produce a ValueObject.  I then use a custom generator that works off 
of the *VO to produce a *FormBase that decorates the VO (composition, 
not inheritance) and allows full Struts integration (handles 
Date->StringDate conversions).  The end Form extends the FormBase and 
adds any requirements needed by the JSP (like readonly lists for 
dropdowns, boolean-String converters for Y/N database columns, etc.)

For the purposes of this discussion, there are 36 attributes.

JSP:  Contains a block of the common fields, followed by some 
 tags to add type-specific information.  NOTE:  This is 
*not* a wizard -- there is no page-by-page progression.  Only one page 
(as the user requires).  The  tag relies on one of the 
form attributes.

Struts:  validation.xml contains one  with a number of  
definitions.  Some of these are required.  Some are 'at least one of 2 
checked' required (for which I added a custom Validator method and 
associated  JavaScript).

Problem:  When I submit, Struts returns an error on the server side 
because fields that aren't included in the JSP are marked as required.

The solution I'd like to see is a Validator that only validates on 
fields that are included in the Submit.

A solution that I'm trying to avoid (and may fail) is to duplicate all 
of the common validation rules in validation.xml for each 'type' of 
form.  In struts-config, I'd just add more actions with the same form 
base.  Though I don't know if that would be enough.  I really don't want 
to move away from the single DispatchAction tied to a single Form with 
only 2 struts action defs (w/ and wo/ validation).

Any suggestions?



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


Validator + Problem

2003-07-11 Thread Aaron Longwell
I feel a little embarrased asking this question... it seems so simple...

I'm having a problem when the Validator framework actually finds a 
validation error. My form contains a dynamically created drop-down. For 
correct data, the form works just fine.

When the user submits bad data, however, they get a page with their 
errors described ( ), but the drop down now has no values 
in it and thus the cannot ever submit good data again.

When I noticed the problem, my setup included a 
request.setAttribute("listitems", items) to insert the collection in the 
Action (on my "edit" action). I realized that this process probably did 
not occur following an HTTP submit to the "update" action. So my 
solution was to put a Collection object in the ActionForm then 
populate the drop-down with the ActionForm's collection thinking 
that the ActionForm object gets passed into the Action shouldn't the 
data be there?

The real question is... how do I repopulate the "n" values in a 1:n 
relationship on a form? I think I'm becoming confused with the lifecycle 
of the ActionForm object, especially with regard to what is happening on 
a submit. where do I insert form setup code that will run both when 
the user requests the form and when the user receives the form back 
after submitting invalid entries?

Thanks for the help,
Aaron
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Validator problem with integers

2003-06-19 Thread Brad Plies
Thank you Robert & Markus for your mask suggestions
will work beautifully.  I would have seen it before I
suppose if I were more comfortable with regexp notation.
Thank you again,
Brad


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


Re: Validator problem with integers

2003-06-19 Thread Brad Plies
You are correct, my choice of words inadvertently changed
the problem statement to something that I didn't mean.  Very
sharp eyes there.
>An integer validation is not the same as a "are all characters numeric"
>validation.  I don't think the validator currently has a numeric check but
>patches are welcome.
>
>David


Re: Validator problem with integers

2003-06-19 Thread Markus Holzem
Hi Brad,

use mask instead of integer. That should do the job. Error message 
states, that the entry is invalid. BTW, arg1 has to be used both for 
minlength and maxlength since {1} is the argument in the error message.

I found that mask can solve nearly all validation problems if they are 
constrained to one field. If you have interdependent fields you still 
have to go back and implement ActionForm::validate.


 
 
 
   
 mask
 ^[0-9]*$
   
   
 minlength
 4
   
   
 maxlength
 4
   
 
Markus

Brad Plies wrote:

Hi folks,

Using struts-RC2, when using Validator with a dependency
on "integer" validation, I have a problem with the validator
assuming that any integer starting with zero "0" is
necessarily octal.  In one example, I have a form where
people enter phone numbers.  Which is split up into 3 text
boxes.  Area code, 3 digits, last 4 digits.  A fairly common
way to break it up.
Here is the validation.xml entry for one such field:


  
  
  
  
maxlength
4
  
  
minlength
4
  

Numbers like "0897" will cause the "... must be an integer" message.
Obviously it is not a valid octal number, and I know that the format
of these numbers would appear as an attempt at an octal number.
How do you prevent octal interpretation but still ensure that
the field is numeric?  I'm being a tad lazy here, because I
know I could always write my own pluggable validator, but
I'd like to use what already exists if possible.


-
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]


AW: Validator problem with integers

2003-06-19 Thread sem . Gottofrey

How about using a regexp?

   
   
   
   mask
   ^\d{4}$
   
   


HTH
Robert

> -Ursprüngliche Nachricht-
> Von: David Graham [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 18. Juni 2003 23:13
> An: [EMAIL PROTECTED]
> Betreff: Re: Validator problem with integers
> 
> 
> An integer validation is not the same as a "are all 
> characters numeric" 
> validation.  I don't think the validator currently has a 
> numeric check but 
> patches are welcome.
> 
> David
> 
> 
> >Hi folks,
> >
> >Using struts-RC2, when using Validator with a dependency
> >on "integer" validation, I have a problem with the validator
> >assuming that any integer starting with zero "0" is
> >necessarily octal.  In one example, I have a form where
> >people enter phone numbers.  Which is split up into 3 text
> >boxes.  Area code, 3 digits, last 4 digits.  A fairly common
> >way to break it up.
> >
> >Here is the validation.xml entry for one such field:
> >
> > >   property="dayPhone3"
> >   depends="required, integer, minlength, maxlength">
> >   
> >   
> >   
> >   
> > maxlength
> > 4
> >   
> >   
> > minlength
> > 4
> >   
> >
> >
> >Numbers like "0897" will cause the "... must be an integer" message.
> >Obviously it is not a valid octal number, and I know that the format
> >of these numbers would appear as an attempt at an octal number.
> >
> >How do you prevent octal interpretation but still ensure that
> >the field is numeric?  I'm being a tad lazy here, because I
> >know I could always write my own pluggable validator, but
> >I'd like to use what already exists if possible.
> >
> >
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> _
> Protect your PC - get McAfee.com VirusScan Online  
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> -
> 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: Validator problem with integers

2003-06-18 Thread Yansheng Lin

Oh they fixed the bug.  The version I downloaded must be old.  





-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 4:45 PM
To: 'Struts Users Mailing List'
Subject: RE: Validator problem with integers


Huh?  How come nobody noticed this before?

Shouldn't the for statement be like this:

-
for (var n = startFrom; n < argvalue.length; n++) {
if (validChars.indexOf(argvalue.substring(n, n+1)) == -1)
return false;
}

Assigning var n =0; doesn't make sense to me 
--
function isAllDigits(argvalue) {
argvalue = argvalue.toString();
var validChars = "0123456789";
var startFrom = 0;
if (argvalue.substring(0, 2) == "0x") {
   validChars = "0123456789abcdefABCDEF";
   startFrom = 2;
} else if (argvalue.charAt(0) == "0") {
   validChars = "01234567";
   startFrom = 1;
}
for (var n = 0; n < argvalue.length; n++) {
if (validChars.indexOf(argvalue.substring(n, n+1)) == -1)
return false;
}
return true;
}
-



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Validator problem with integers



Oh yeah. Sorry

Well, at least I pinpointed where the check failed:).



>There is a js function called isAllDigits(arg) in validator-rules.xml.  
>It's
>used by validateInteger().  You can use that.

No you can't because that function validates based on the type of number 
(int, octal, etc).

David

>
>Yan


-
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]


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



RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
Huh?  How come nobody noticed this before?

Shouldn't the for statement be like this:

-
for (var n = startFrom; n < argvalue.length; n++) {
if (validChars.indexOf(argvalue.substring(n, n+1)) == -1)
return false;
}

Assigning var n =0; doesn't make sense to me 
--
function isAllDigits(argvalue) {
argvalue = argvalue.toString();
var validChars = "0123456789";
var startFrom = 0;
if (argvalue.substring(0, 2) == "0x") {
   validChars = "0123456789abcdefABCDEF";
   startFrom = 2;
} else if (argvalue.charAt(0) == "0") {
   validChars = "01234567";
   startFrom = 1;
}
for (var n = 0; n < argvalue.length; n++) {
if (validChars.indexOf(argvalue.substring(n, n+1)) == -1)
return false;
}
return true;
}
-



-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 4:23 PM
To: 'Struts Users Mailing List'
Subject: RE: Validator problem with integers



Oh yeah. Sorry

Well, at least I pinpointed where the check failed:).



>There is a js function called isAllDigits(arg) in validator-rules.xml.  
>It's
>used by validateInteger().  You can use that.

No you can't because that function validates based on the type of number 
(int, octal, etc).

David

>
>Yan


-
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: Validator problem with integers

2003-06-18 Thread Yansheng Lin

Oh yeah. Sorry

Well, at least I pinpointed where the check failed:).



>There is a js function called isAllDigits(arg) in validator-rules.xml.  
>It's
>used by validateInteger().  You can use that.

No you can't because that function validates based on the type of number 
(int, octal, etc).

David

>
>Yan


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



RE: Validator problem with integers

2003-06-18 Thread David Graham
There is a js function called isAllDigits(arg) in validator-rules.xml.  
It's
used by validateInteger().  You can use that.
No you can't because that function validates based on the type of number 
(int, octal, etc).

David

Yan

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: June 18, 2003 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator problem with integers
An integer validation is not the same as a "are all characters numeric"
validation.  I don't think the validator currently has a numeric check but
patches are welcome.
David

>Hi folks,
>
>Using struts-RC2, when using Validator with a dependency
>on "integer" validation, I have a problem with the validator
>assuming that any integer starting with zero "0" is
>necessarily octal.  In one example, I have a form where
>people enter phone numbers.  Which is split up into 3 text
>boxes.  Area code, 3 digits, last 4 digits.  A fairly common
>way to break it up.
>
>Here is the validation.xml entry for one such field:
>
>   property="dayPhone3"
>   depends="required, integer, minlength, maxlength">
>   
>   
>   
>   
> maxlength
> 4
>   
>   
> minlength
> 4
>   
>
>
>Numbers like "0897" will cause the "... must be an integer" message.
>Obviously it is not a valid octal number, and I know that the format
>of these numbers would appear as an attempt at an octal number.
>
>How do you prevent octal interpretation but still ensure that
>the field is numeric?  I'm being a tad lazy here, because I
>know I could always write my own pluggable validator, but
>I'd like to use what already exists if possible.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
_
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
-
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]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


RE: Validator problem with integers

2003-06-18 Thread Yansheng Lin
There is a js function called isAllDigits(arg) in validator-rules.xml.  It's
used by validateInteger().  You can use that.  

Yan

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: June 18, 2003 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: Validator problem with integers


An integer validation is not the same as a "are all characters numeric" 
validation.  I don't think the validator currently has a numeric check but 
patches are welcome.

David


>Hi folks,
>
>Using struts-RC2, when using Validator with a dependency
>on "integer" validation, I have a problem with the validator
>assuming that any integer starting with zero "0" is
>necessarily octal.  In one example, I have a form where
>people enter phone numbers.  Which is split up into 3 text
>boxes.  Area code, 3 digits, last 4 digits.  A fairly common
>way to break it up.
>
>Here is the validation.xml entry for one such field:
>
>   property="dayPhone3"
>   depends="required, integer, minlength, maxlength">
>   
>   
>   
>   
> maxlength
> 4
>   
>   
> minlength
> 4
>   
>
>
>Numbers like "0897" will cause the "... must be an integer" message.
>Obviously it is not a valid octal number, and I know that the format
>of these numbers would appear as an attempt at an octal number.
>
>How do you prevent octal interpretation but still ensure that
>the field is numeric?  I'm being a tad lazy here, because I
>know I could always write my own pluggable validator, but
>I'd like to use what already exists if possible.
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


-
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: Validator problem with integers

2003-06-18 Thread David Graham
An integer validation is not the same as a "are all characters numeric" 
validation.  I don't think the validator currently has a numeric check but 
patches are welcome.

David


Hi folks,

Using struts-RC2, when using Validator with a dependency
on "integer" validation, I have a problem with the validator
assuming that any integer starting with zero "0" is
necessarily octal.  In one example, I have a form where
people enter phone numbers.  Which is split up into 3 text
boxes.  Area code, 3 digits, last 4 digits.  A fairly common
way to break it up.
Here is the validation.xml entry for one such field:


  
  
  
  
maxlength
4
  
  
minlength
4
  

Numbers like "0897" will cause the "... must be an integer" message.
Obviously it is not a valid octal number, and I know that the format
of these numbers would appear as an attempt at an octal number.
How do you prevent octal interpretation but still ensure that
the field is numeric?  I'm being a tad lazy here, because I
know I could always write my own pluggable validator, but
I'd like to use what already exists if possible.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Validator problem with integers

2003-06-18 Thread Brad Plies
Hi folks,

Using struts-RC2, when using Validator with a dependency
on "integer" validation, I have a problem with the validator
assuming that any integer starting with zero "0" is
necessarily octal.  In one example, I have a form where
people enter phone numbers.  Which is split up into 3 text
boxes.  Area code, 3 digits, last 4 digits.  A fairly common
way to break it up.
Here is the validation.xml entry for one such field:


  
  
  
  
maxlength
4
  
  
minlength
4
  

Numbers like "0897" will cause the "... must be an integer" message.
Obviously it is not a valid octal number, and I know that the format
of these numbers would appear as an attempt at an octal number.
How do you prevent octal interpretation but still ensure that
the field is numeric?  I'm being a tad lazy here, because I
know I could always write my own pluggable validator, but
I'd like to use what already exists if possible.


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


[REPOST] Struts Validator Problem

2003-03-03 Thread Vedd Sampang
Hi

I am trying to use the Validator. The validation works fine in one page. I
have another page where the validation rules get fired when the page is
loaded and not when it is submitted. So, the error messages for required
fields are displayed as the page is loaded. It should be displayed when the
user leaves the fields empty and submits the page.

TIA
Vedd




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



Struts-Validator: Problem

2003-02-26 Thread Vedd Sampang
Hi

I have just started to use the Validator. The problem is that my validation
for the page are fired when the page is loaded.

Rgds
Ved




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



Re: Strange Validator Problem

2003-02-22 Thread Robert Morse
This problem was solved thanks to another lister.  It has nothing to do
with JDK version.  JDK 1.4.1_01 works just fine.  The solution was to
reference a global forward in the input tag of the action.  Struts
versions prior to 1.1 did not require this.  Perhaps a bug?



On Mon, 2003-02-10 at 12:39, Robert Morse wrote:
> Hello,
> I have a very strange validator problem with 1.1-b3.  
> 
> I have a simple logon form (ValidatorForm) that accepts a userid and
> password.  In my validation.xml file I'm specifying that the fields are
> required.  The struts-config.xml file has the validate="true".  When I
> execute this, I get the logon.jsp page successfully displayed, but if I
> leave the fields blank and submit, no errors occur, but a blank white
> display shows up in the browser.
> 
> Now the strange part, if I change validate="false", check for
> non-existent password or userid in the Action, and use errors.add() to
> add the appropriate errors; this time when I submit with the fields
> blank, I get the form re-displayed with errors.  The 'input' key remains
> the same between both versions.
> 
> If I set up a log4.properties file with the level set to DEBUG, I can
> see that the resource keys for the error messages are being loaded, and
> I get a message saying that the validation failed -- so I know the
> validator is being called.  The last message I get tells me:  Validation
> failed, returning to '/logon/logon.jsp'.  But all I get after that is a
> blank white page, yet the '/logon/logon.jsp' is the correct path and
> works when validate='false'.
> 
> Any ideas?
> 
> Thanks!
> 
> -robert.
> -- 
> "All motion is not progress, and all movement is not forward" (anon)
> Key ID:  F0533BB6
> Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
"All motion is not progress, and all movement is not forward" (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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



RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
http://sourceforge.net/project/showfiles.php?group_id=22866

> -Original Message-
> From: awc [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 13. Februar 2003 22:29
> To: Struts Users Mailing List
> Subject: Re: Strange Validator Problem
>
>
> Do they have - Jboss 3.0.6 with tomcat 4.1.18 out?.
>
> Thanks
>
> .anil
>
> René Eigenheer wrote:
>
> > - struts 1.1b3
> > - Java(TM) 2 Runtime Environment, Standard Edition (build
> 1.4.1_01-b01)
> > - Jboss 3.0.6 with tomcat 4.1.18
> >
> > actually I'm testing everything on my W2K pc - if this
> works fine, I'll try
> > the same versions on a linux box
> >
> > BTW: the version of commons-validator.jar with which I had
> troubles is 44452
> > bytes, the one which works for me is 44454 bytes
> >
> > > -Original Message-
> > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > Sent: Donnerstag, 13. Februar 2003 15:46
> > > To: Struts Users Mailing List
> > > Subject: RE: Strange Validator Problem
> > >
> > >
> > > Would you mind sharing which versions of Tomcat, JDK,
> etc., you are
> > > using?  Thanks.
> > >
> > > On Thu, 2003-02-13 at 04:54, René Eigenheer wrote:
> > > > ok I could eliminate my problem - obviously with all my
> > > changes I've got a
> > > > wrong commons-validator version. after copying the
> version out of
> > > > struts-b3-binary everything works again ;-)
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Donnerstag, 13. Februar 2003 03:31
> > > > > To: Struts Users Mailing List
> > > > > Subject: RE: Strange Validator Problem
> > > > >
> > > > >
> > > > > Not yet.  My next step is to trace through everything in
> > > an attempt to
> > > > > find it, but that won't be until next week.  For what
> > > it's worth the
> > > > > nightly builds have the same problem.
> > > > >
> > > > >
> > > > > On Wed, 2003-02-12 at 13:48, René Eigenheer wrote:
> > > > > > did you find any solution? I've upgraded today some
> > > > > components (jdk, tomcat)
> > > > > > and I remarked, that my validations do not work anymore -
> > > > > no idea whether it
> > > > > > is the same problem as you have
> > > > > >
> > > > > > rene
> > > > > >
> > > > > > > -Original Message-
> > > > > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Dienstag, 11. Februar 2003 21:26
> > > > > > > To: Struts Users Mailing List
> > > > > > > Subject: Re: Strange Validator Problem
> > > > > > >
> > > > > > >
> > > > > > > It was 1.4.1_01, but I have switched to
> 1.4.0_03-b04 and the
> > > > > > > problem is
> > > > > > > still present.  I appreciate your help; do you
> have any other
> > > > > > > suggestion?  Thanks!
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On Tue, 2003-02-11 at 02:09, Iris wrote:
> > > > > > > > What is your version of java ?
> > > > > > > > I had the same problem with j2sdk1.4.1_01 but I
> work fine
> > > > > > > with j2sdk1.4.0.
> > > > > > > >
> > > > > > > > Iris
> > > > > > > >
> > > > > > > > Robert Morse wrote:
> > > > > > > >
> > > > > > > > >Hello,
> > > > > > > > >I have a very strange validator problem with 1.1-b3.
> > > > > > > > >
> > > > > > > > >I have a simple logon form (ValidatorForm)
> that accepts a
> > > > > > > userid and
> > > > > > > > >password.  In my validation.xml file I'm
> specifying that
> > > > > > > the fields are
> > > > > > > > >required.  The struts-config.xml file has the
> > > > > > > validate="true".  When I
> > > > > > > > >execute this, I get the logon.jsp page su

Re: Strange Validator Problem

2003-02-13 Thread awc
Do they have - Jboss 3.0.6 with tomcat 4.1.18 out?.

Thanks

.anil

René Eigenheer wrote:

> - struts 1.1b3
> - Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
> - Jboss 3.0.6 with tomcat 4.1.18
>
> actually I'm testing everything on my W2K pc - if this works fine, I'll try
> the same versions on a linux box
>
> BTW: the version of commons-validator.jar with which I had troubles is 44452
> bytes, the one which works for me is 44454 bytes
>
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Donnerstag, 13. Februar 2003 15:46
> > To: Struts Users Mailing List
> > Subject: RE: Strange Validator Problem
> >
> >
> > Would you mind sharing which versions of Tomcat, JDK, etc., you are
> > using?  Thanks.
> >
> > On Thu, 2003-02-13 at 04:54, René Eigenheer wrote:
> > > ok I could eliminate my problem - obviously with all my
> > changes I've got a
> > > wrong commons-validator version. after copying the version out of
> > > struts-b3-binary everything works again ;-)
> > >
> > >
> > > > -Original Message-----
> > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > Sent: Donnerstag, 13. Februar 2003 03:31
> > > > To: Struts Users Mailing List
> > > > Subject: RE: Strange Validator Problem
> > > >
> > > >
> > > > Not yet.  My next step is to trace through everything in
> > an attempt to
> > > > find it, but that won't be until next week.  For what
> > it's worth the
> > > > nightly builds have the same problem.
> > > >
> > > >
> > > > On Wed, 2003-02-12 at 13:48, René Eigenheer wrote:
> > > > > did you find any solution? I've upgraded today some
> > > > components (jdk, tomcat)
> > > > > and I remarked, that my validations do not work anymore -
> > > > no idea whether it
> > > > > is the same problem as you have
> > > > >
> > > > > rene
> > > > >
> > > > > > -Original Message-
> > > > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Dienstag, 11. Februar 2003 21:26
> > > > > > To: Struts Users Mailing List
> > > > > > Subject: Re: Strange Validator Problem
> > > > > >
> > > > > >
> > > > > > It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> > > > > > problem is
> > > > > > still present.  I appreciate your help; do you have any other
> > > > > > suggestion?  Thanks!
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Tue, 2003-02-11 at 02:09, Iris wrote:
> > > > > > > What is your version of java ?
> > > > > > > I had the same problem with j2sdk1.4.1_01 but I work fine
> > > > > > with j2sdk1.4.0.
> > > > > > >
> > > > > > > Iris
> > > > > > >
> > > > > > > Robert Morse wrote:
> > > > > > >
> > > > > > > >Hello,
> > > > > > > >I have a very strange validator problem with 1.1-b3.
> > > > > > > >
> > > > > > > >I have a simple logon form (ValidatorForm) that accepts a
> > > > > > userid and
> > > > > > > >password.  In my validation.xml file I'm specifying that
> > > > > > the fields are
> > > > > > > >required.  The struts-config.xml file has the
> > > > > > validate="true".  When I
> > > > > > > >execute this, I get the logon.jsp page successfully
> > > > > > displayed, but if I
> > > > > > > >leave the fields blank and submit, no errors occur, but a
> > > > > > blank white
> > > > > > > >display shows up in the browser.
> > > > > > > >
> > > > > > > >Now the strange part, if I change
> > validate="false", check for
> > > > > > > >non-existent password or userid in the Action, and use
> > > > > > errors.add() to
> > > > > > > >add the appropriate errors; this time when I submit
> > > > with the fields
> > > > > > > >blank, I get the form re-displayed wi

RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
- struts 1.1b3
- Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
- Jboss 3.0.6 with tomcat 4.1.18

actually I'm testing everything on my W2K pc - if this works fine, I'll try
the same versions on a linux box

BTW: the version of commons-validator.jar with which I had troubles is 44452
bytes, the one which works for me is 44454 bytes



> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 13. Februar 2003 15:46
> To: Struts Users Mailing List
> Subject: RE: Strange Validator Problem
>
>
> Would you mind sharing which versions of Tomcat, JDK, etc., you are
> using?  Thanks.
>
> On Thu, 2003-02-13 at 04:54, René Eigenheer wrote:
> > ok I could eliminate my problem - obviously with all my
> changes I've got a
> > wrong commons-validator version. after copying the version out of
> > struts-b3-binary everything works again ;-)
> >
> >
> > > -Original Message-
> > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > Sent: Donnerstag, 13. Februar 2003 03:31
> > > To: Struts Users Mailing List
> > > Subject: RE: Strange Validator Problem
> > >
> > >
> > > Not yet.  My next step is to trace through everything in
> an attempt to
> > > find it, but that won't be until next week.  For what
> it's worth the
> > > nightly builds have the same problem.
> > >
> > >
> > > On Wed, 2003-02-12 at 13:48, René Eigenheer wrote:
> > > > did you find any solution? I've upgraded today some
> > > components (jdk, tomcat)
> > > > and I remarked, that my validations do not work anymore -
> > > no idea whether it
> > > > is the same problem as you have
> > > >
> > > > rene
> > > >
> > > > > -Original Message-
> > > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Dienstag, 11. Februar 2003 21:26
> > > > > To: Struts Users Mailing List
> > > > > Subject: Re: Strange Validator Problem
> > > > >
> > > > >
> > > > > It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> > > > > problem is
> > > > > still present.  I appreciate your help; do you have any other
> > > > > suggestion?  Thanks!
> > > > >
> > > > >
> > > > >
> > > > > On Tue, 2003-02-11 at 02:09, Iris wrote:
> > > > > > What is your version of java ?
> > > > > > I had the same problem with j2sdk1.4.1_01 but I work fine
> > > > > with j2sdk1.4.0.
> > > > > >
> > > > > > Iris
> > > > > >
> > > > > > Robert Morse wrote:
> > > > > >
> > > > > > >Hello,
> > > > > > >I have a very strange validator problem with 1.1-b3.
> > > > > > >
> > > > > > >I have a simple logon form (ValidatorForm) that accepts a
> > > > > userid and
> > > > > > >password.  In my validation.xml file I'm specifying that
> > > > > the fields are
> > > > > > >required.  The struts-config.xml file has the
> > > > > validate="true".  When I
> > > > > > >execute this, I get the logon.jsp page successfully
> > > > > displayed, but if I
> > > > > > >leave the fields blank and submit, no errors occur, but a
> > > > > blank white
> > > > > > >display shows up in the browser.
> > > > > > >
> > > > > > >Now the strange part, if I change
> validate="false", check for
> > > > > > >non-existent password or userid in the Action, and use
> > > > > errors.add() to
> > > > > > >add the appropriate errors; this time when I submit
> > > with the fields
> > > > > > >blank, I get the form re-displayed with errors.  The
> > > > > 'input' key remains
> > > > > > >the same between both versions.
> > > > > > >
> > > > > > >If I set up a log4.properties file with the level set to
> > > > > DEBUG, I can
> > > > > > >see that the resource keys for the error messages are
> > > > > being loaded, and
> > > > > > &

RE: Strange Validator Problem

2003-02-13 Thread Robert Morse
Would you mind sharing which versions of Tomcat, JDK, etc., you are
using?  Thanks.

On Thu, 2003-02-13 at 04:54, René Eigenheer wrote:
> ok I could eliminate my problem - obviously with all my changes I've got a
> wrong commons-validator version. after copying the version out of
> struts-b3-binary everything works again ;-)
> 
> 
> > -Original Message-
> > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > Sent: Donnerstag, 13. Februar 2003 03:31
> > To: Struts Users Mailing List
> > Subject: RE: Strange Validator Problem
> >
> >
> > Not yet.  My next step is to trace through everything in an attempt to
> > find it, but that won't be until next week.  For what it's worth the
> > nightly builds have the same problem.
> >
> >
> > On Wed, 2003-02-12 at 13:48, René Eigenheer wrote:
> > > did you find any solution? I've upgraded today some
> > components (jdk, tomcat)
> > > and I remarked, that my validations do not work anymore -
> > no idea whether it
> > > is the same problem as you have
> > >
> > > rene
> > >
> > > > -Original Message-
> > > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > > Sent: Dienstag, 11. Februar 2003 21:26
> > > > To: Struts Users Mailing List
> > > > Subject: Re: Strange Validator Problem
> > > >
> > > >
> > > > It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> > > > problem is
> > > > still present.  I appreciate your help; do you have any other
> > > > suggestion?  Thanks!
> > > >
> > > >
> > > >
> > > > On Tue, 2003-02-11 at 02:09, Iris wrote:
> > > > > What is your version of java ?
> > > > > I had the same problem with j2sdk1.4.1_01 but I work fine
> > > > with j2sdk1.4.0.
> > > > >
> > > > > Iris
> > > > >
> > > > > Robert Morse wrote:
> > > > >
> > > > > >Hello,
> > > > > >I have a very strange validator problem with 1.1-b3.
> > > > > >
> > > > > >I have a simple logon form (ValidatorForm) that accepts a
> > > > userid and
> > > > > >password.  In my validation.xml file I'm specifying that
> > > > the fields are
> > > > > >required.  The struts-config.xml file has the
> > > > validate="true".  When I
> > > > > >execute this, I get the logon.jsp page successfully
> > > > displayed, but if I
> > > > > >leave the fields blank and submit, no errors occur, but a
> > > > blank white
> > > > > >display shows up in the browser.
> > > > > >
> > > > > >Now the strange part, if I change validate="false", check for
> > > > > >non-existent password or userid in the Action, and use
> > > > errors.add() to
> > > > > >add the appropriate errors; this time when I submit
> > with the fields
> > > > > >blank, I get the form re-displayed with errors.  The
> > > > 'input' key remains
> > > > > >the same between both versions.
> > > > > >
> > > > > >If I set up a log4.properties file with the level set to
> > > > DEBUG, I can
> > > > > >see that the resource keys for the error messages are
> > > > being loaded, and
> > > > > >I get a message saying that the validation failed --
> > so I know the
> > > > > >validator is being called.  The last message I get tells
> > > > me:  Validation
> > > > > >failed, returning to '/logon/logon.jsp'.  But all I get
> > > > after that is a
> > > > > >blank white page, yet the '/logon/logon.jsp' is the
> > > > correct path and
> > > > > >works when validate='false'.
> > > > > >
> > > > > >Any ideas?
> > > > > >
> > > > > >Thanks!
> > > > > >
> > > > > >-robert.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > -
> > > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >

RE: Strange Validator Problem

2003-02-13 Thread René Eigenheer
ok I could eliminate my problem - obviously with all my changes I've got a
wrong commons-validator version. after copying the version out of
struts-b3-binary everything works again ;-)


> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Donnerstag, 13. Februar 2003 03:31
> To: Struts Users Mailing List
> Subject: RE: Strange Validator Problem
>
>
> Not yet.  My next step is to trace through everything in an attempt to
> find it, but that won't be until next week.  For what it's worth the
> nightly builds have the same problem.
>
>
> On Wed, 2003-02-12 at 13:48, René Eigenheer wrote:
> > did you find any solution? I've upgraded today some
> components (jdk, tomcat)
> > and I remarked, that my validations do not work anymore -
> no idea whether it
> > is the same problem as you have
> >
> > rene
> >
> > > -Original Message-
> > > From: Robert Morse [mailto:[EMAIL PROTECTED]]
> > > Sent: Dienstag, 11. Februar 2003 21:26
> > > To: Struts Users Mailing List
> > > Subject: Re: Strange Validator Problem
> > >
> > >
> > > It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> > > problem is
> > > still present.  I appreciate your help; do you have any other
> > > suggestion?  Thanks!
> > >
> > >
> > >
> > > On Tue, 2003-02-11 at 02:09, Iris wrote:
> > > > What is your version of java ?
> > > > I had the same problem with j2sdk1.4.1_01 but I work fine
> > > with j2sdk1.4.0.
> > > >
> > > > Iris
> > > >
> > > > Robert Morse wrote:
> > > >
> > > > >Hello,
> > > > >I have a very strange validator problem with 1.1-b3.
> > > > >
> > > > >I have a simple logon form (ValidatorForm) that accepts a
> > > userid and
> > > > >password.  In my validation.xml file I'm specifying that
> > > the fields are
> > > > >required.  The struts-config.xml file has the
> > > validate="true".  When I
> > > > >execute this, I get the logon.jsp page successfully
> > > displayed, but if I
> > > > >leave the fields blank and submit, no errors occur, but a
> > > blank white
> > > > >display shows up in the browser.
> > > > >
> > > > >Now the strange part, if I change validate="false", check for
> > > > >non-existent password or userid in the Action, and use
> > > errors.add() to
> > > > >add the appropriate errors; this time when I submit
> with the fields
> > > > >blank, I get the form re-displayed with errors.  The
> > > 'input' key remains
> > > > >the same between both versions.
> > > > >
> > > > >If I set up a log4.properties file with the level set to
> > > DEBUG, I can
> > > > >see that the resource keys for the error messages are
> > > being loaded, and
> > > > >I get a message saying that the validation failed --
> so I know the
> > > > >validator is being called.  The last message I get tells
> > > me:  Validation
> > > > >failed, returning to '/logon/logon.jsp'.  But all I get
> > > after that is a
> > > > >blank white page, yet the '/logon/logon.jsp' is the
> > > correct path and
> > > > >works when validate='false'.
> > > > >
> > > > >Any ideas?
> > > > >
> > > > >Thanks!
> > > > >
> > > > >-robert.
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > --
> > > "All motion is not progress, and all movement is not
> forward" (anon)
> > > Key ID:  F0533BB6
> > > Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
> > >
> > >
> > >
> > >
> -
> > > 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]
> --
> "All motion is not progress, and all movement is not forward" (anon)
> Key ID:  F0533BB6
> Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
>
>
>
> -
> 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: Strange Validator Problem

2003-02-12 Thread René Eigenheer
did you find any solution? I've upgraded today some components (jdk, tomcat)
and I remarked, that my validations do not work anymore - no idea whether it
is the same problem as you have

rene

> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 11. Februar 2003 21:26
> To: Struts Users Mailing List
> Subject: Re: Strange Validator Problem
>
>
> It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> problem is
> still present.  I appreciate your help; do you have any other
> suggestion?  Thanks!
>
>
>
> On Tue, 2003-02-11 at 02:09, Iris wrote:
> > What is your version of java ?
> > I had the same problem with j2sdk1.4.1_01 but I work fine
> with j2sdk1.4.0.
> >
> > Iris
> >
> > Robert Morse wrote:
> >
> > >Hello,
> > >I have a very strange validator problem with 1.1-b3.
> > >
> > >I have a simple logon form (ValidatorForm) that accepts a
> userid and
> > >password.  In my validation.xml file I'm specifying that
> the fields are
> > >required.  The struts-config.xml file has the
> validate="true".  When I
> > >execute this, I get the logon.jsp page successfully
> displayed, but if I
> > >leave the fields blank and submit, no errors occur, but a
> blank white
> > >display shows up in the browser.
> > >
> > >Now the strange part, if I change validate="false", check for
> > >non-existent password or userid in the Action, and use
> errors.add() to
> > >add the appropriate errors; this time when I submit with the fields
> > >blank, I get the form re-displayed with errors.  The
> 'input' key remains
> > >the same between both versions.
> > >
> > >If I set up a log4.properties file with the level set to
> DEBUG, I can
> > >see that the resource keys for the error messages are
> being loaded, and
> > >I get a message saying that the validation failed -- so I know the
> > >validator is being called.  The last message I get tells
> me:  Validation
> > >failed, returning to '/logon/logon.jsp'.  But all I get
> after that is a
> > >blank white page, yet the '/logon/logon.jsp' is the
> correct path and
> > >works when validate='false'.
> > >
> > >Any ideas?
> > >
> > >Thanks!
> > >
> > >-robert.
> > >
> > >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> "All motion is not progress, and all movement is not forward" (anon)
> Key ID:  F0533BB6
> Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
>
>
>
> -
> 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: Strange Validator Problem

2003-02-11 Thread Robert Morse
It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the problem is
still present.  I appreciate your help; do you have any other
suggestion?  Thanks!



On Tue, 2003-02-11 at 02:09, Iris wrote:
> What is your version of java ?
> I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0.
> 
> Iris
> 
> Robert Morse wrote:
> 
> >Hello,
> >I have a very strange validator problem with 1.1-b3.  
> >
> >I have a simple logon form (ValidatorForm) that accepts a userid and
> >password.  In my validation.xml file I'm specifying that the fields are
> >required.  The struts-config.xml file has the validate="true".  When I
> >execute this, I get the logon.jsp page successfully displayed, but if I
> >leave the fields blank and submit, no errors occur, but a blank white
> >display shows up in the browser.
> >
> >Now the strange part, if I change validate="false", check for
> >non-existent password or userid in the Action, and use errors.add() to
> >add the appropriate errors; this time when I submit with the fields
> >blank, I get the form re-displayed with errors.  The 'input' key remains
> >the same between both versions.
> >
> >If I set up a log4.properties file with the level set to DEBUG, I can
> >see that the resource keys for the error messages are being loaded, and
> >I get a message saying that the validation failed -- so I know the
> >validator is being called.  The last message I get tells me:  Validation
> >failed, returning to '/logon/logon.jsp'.  But all I get after that is a
> >blank white page, yet the '/logon/logon.jsp' is the correct path and
> >works when validate='false'.
> >
> >Any ideas?
> >
> >Thanks!
> >
> >-robert.
> >  
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-- 
"All motion is not progress, and all movement is not forward" (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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




Re: Strange Validator Problem

2003-02-11 Thread Vic Cekvenich
Sun VM issues:

I have my clients using another VM with sccess, J:Rockit.
http://www.bea.com/products/weblogic/jrockit/index.shtml

It's FREE, faster, and has nice production monitoring capabilities of VM 
and GC use of multiple servers. (Also IBM has a 1.4 coming up)

Nice thing about open standards is you can replace.

.V

Iris wrote:
What is your version of java ?
I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0.

Iris

Robert Morse wrote:


Hello,
I have a very strange validator problem with 1.1-b3. 
I have a simple logon form (ValidatorForm) that accepts a userid and
password.  In my validation.xml file I'm specifying that the fields are
required.  The struts-config.xml file has the validate="true".  When I
execute this, I get the logon.jsp page successfully displayed, but if I
leave the fields blank and submit, no errors occur, but a blank white
display shows up in the browser.

Now the strange part, if I change validate="false", check for
non-existent password or userid in the Action, and use errors.add() to
add the appropriate errors; this time when I submit with the fields
blank, I get the form re-displayed with errors.  The 'input' key remains
the same between both versions.

If I set up a log4.properties file with the level set to DEBUG, I can
see that the resource keys for the error messages are being loaded, and
I get a message saying that the validation failed -- so I know the
validator is being called.  The last message I get tells me:  Validation
failed, returning to '/logon/logon.jsp'.  But all I get after that is a
blank white page, yet the '/logon/logon.jsp' is the correct path and
works when validate='false'.

Any ideas?

Thanks!

-robert.
 




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




Re: Strange Validator Problem

2003-02-11 Thread Iris
What is your version of java ?
I had the same problem with j2sdk1.4.1_01 but I work fine with j2sdk1.4.0.

Iris

Robert Morse wrote:


Hello,
I have a very strange validator problem with 1.1-b3.  

I have a simple logon form (ValidatorForm) that accepts a userid and
password.  In my validation.xml file I'm specifying that the fields are
required.  The struts-config.xml file has the validate="true".  When I
execute this, I get the logon.jsp page successfully displayed, but if I
leave the fields blank and submit, no errors occur, but a blank white
display shows up in the browser.

Now the strange part, if I change validate="false", check for
non-existent password or userid in the Action, and use errors.add() to
add the appropriate errors; this time when I submit with the fields
blank, I get the form re-displayed with errors.  The 'input' key remains
the same between both versions.

If I set up a log4.properties file with the level set to DEBUG, I can
see that the resource keys for the error messages are being loaded, and
I get a message saying that the validation failed -- so I know the
validator is being called.  The last message I get tells me:  Validation
failed, returning to '/logon/logon.jsp'.  But all I get after that is a
blank white page, yet the '/logon/logon.jsp' is the correct path and
works when validate='false'.

Any ideas?

Thanks!

-robert.
 





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




Strange Validator Problem

2003-02-10 Thread Robert Morse
Hello,
I have a very strange validator problem with 1.1-b3.  

I have a simple logon form (ValidatorForm) that accepts a userid and
password.  In my validation.xml file I'm specifying that the fields are
required.  The struts-config.xml file has the validate="true".  When I
execute this, I get the logon.jsp page successfully displayed, but if I
leave the fields blank and submit, no errors occur, but a blank white
display shows up in the browser.

Now the strange part, if I change validate="false", check for
non-existent password or userid in the Action, and use errors.add() to
add the appropriate errors; this time when I submit with the fields
blank, I get the form re-displayed with errors.  The 'input' key remains
the same between both versions.

If I set up a log4.properties file with the level set to DEBUG, I can
see that the resource keys for the error messages are being loaded, and
I get a message saying that the validation failed -- so I know the
validator is being called.  The last message I get tells me:  Validation
failed, returning to '/logon/logon.jsp'.  But all I get after that is a
blank white page, yet the '/logon/logon.jsp' is the correct path and
works when validate='false'.

Any ideas?

Thanks!

-robert.
-- 
"All motion is not progress, and all movement is not forward" (anon)
Key ID:  F0533BB6
Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6



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




Re: Show stopping validator problem.

2003-02-10 Thread Ray
Thanks Vic.

In the end I just wiped the whole tomcat work
directory and restarted and it started working.

I have a feeling it may have been because I had the
resources file open in an editor, so it may not have
been reading it in or something ...

--- Vic Cekvenich <[EMAIL PROTECTED]> wrote:
> Just last night a had a similar problem for a while.
> 
> In my case the resource properties files had a typo
> in struts-config.
>
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/portlets/proj/TasksZoomTile.jsp
> 
> 
> has the setup file, and same place has a validator
> working, look at 
> struts-config and validator.xml in config of
> web-inf.
> 
> .V
> 
> Ray wrote:
> > Hi there.
> > 
> > I'm using the Javascript validator, and have run
> into a problem that I 
> > can't get around.
> > 
> > When a field is invalid, the Javascript dialog box
> just comes up empty, 
> > and I can't figure out why.  I had a look at the
> code generated in 
> > JavaScript, and it appears to be missing the
> actual error messages:
> > 
> > function required () {
> >  this.aa = new Array("name", "", new Function
> ("varName", " return 
> > this[varName];"));
> >  this.ab = new Array("address", "", new
> Function ("varName", " 
> > return this[varName];"));
> >  this.ac = new Array("telephoneNumber", "",
> new Function ("varName", 
> > " return this[varName];"));
> >  this.ad = new Array("emailAddress", "", new
> Function ("varName", " 
> > return this[varName];"));
> > }
> > The second parameter in the arrays should have the
> error message in it, 
> > but it comes out blank.
> > I can't see why, because I have the messages in
> the app resources file 
> > and the validation.xml is set up correctly, and I
> have the 
> >  tag in the page.
> > 
> > Is there anything else it could be?
> > 
> > Any help would be greatly appreciated;
> > 
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Show stopping validator problem.

2003-02-10 Thread Vic Cekvenich
Just last night a had a similar problem for a while.

In my case the resource properties files had a typo in struts-config.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal/portlets/proj/TasksZoomTile.jsp 

has the setup file, and same place has a validator working, look at 
struts-config and validator.xml in config of web-inf.

.V

Ray wrote:
Hi there.

I'm using the Javascript validator, and have run into a problem that I 
can't get around.

When a field is invalid, the Javascript dialog box just comes up empty, 
and I can't figure out why.  I had a look at the code generated in 
JavaScript, and it appears to be missing the actual error messages:

function required () {
 this.aa = new Array("name", "", new Function ("varName", " return 
this[varName];"));
 this.ab = new Array("address", "", new Function ("varName", " 
return this[varName];"));
 this.ac = new Array("telephoneNumber", "", new Function ("varName", 
" return this[varName];"));
 this.ad = new Array("emailAddress", "", new Function ("varName", " 
return this[varName];"));
}
The second parameter in the arrays should have the error message in it, 
but it comes out blank.
I can't see why, because I have the messages in the app resources file 
and the validation.xml is set up correctly, and I have the 
 tag in the page.

Is there anything else it could be?

Any help would be greatly appreciated;




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



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




Re: Show stopping validator problem.

2003-02-09 Thread Ray
Nope. No modules. Just a straight applicaion ...

At 10:30 09/02/2003 -0700, you wrote:

Are you using modules?  If your module doesn't define a message resources 
then it won't find the error messages.

David



From: Ray <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Show stopping validator problem.
Date: Sun, 09 Feb 2003 11:58:47 +

Hi there.

I'm using the Javascript validator, and have run into a problem that I 
can't get around.

When a field is invalid, the Javascript dialog box just comes up empty, 
and I can't figure out why.  I had a look at the code generated in 
JavaScript, and it appears to be missing the actual error messages:

function required () {
 this.aa = new Array("name", "", new Function ("varName", " return 
this[varName];"));
 this.ab = new Array("address", "", new Function ("varName", " 
return this[varName];"));
 this.ac = new Array("telephoneNumber", "", new Function ("varName", 
" return this[varName];"));
 this.ad = new Array("emailAddress", "", new Function ("varName", " 
return this[varName];"));
}
The second parameter in the arrays should have the error message in it, 
but it comes out blank.
I can't see why, because I have the messages in the app resources file 
and the validation.xml is set up correctly, and I have the 
 tag in the page.

Is there anything else it could be?

Any help would be greatly appreciated;




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Show stopping validator problem.

2003-02-09 Thread David Graham
Are you using modules?  If your module doesn't define a message resources 
then it won't find the error messages.

David



From: Ray <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Show stopping validator problem.
Date: Sun, 09 Feb 2003 11:58:47 +

Hi there.

I'm using the Javascript validator, and have run into a problem that I 
can't get around.

When a field is invalid, the Javascript dialog box just comes up empty, and 
I can't figure out why.  I had a look at the code generated in JavaScript, 
and it appears to be missing the actual error messages:

function required () {
 this.aa = new Array("name", "", new Function ("varName", " return 
this[varName];"));
 this.ab = new Array("address", "", new Function ("varName", " return 
this[varName];"));
 this.ac = new Array("telephoneNumber", "", new Function ("varName", " 
return this[varName];"));
 this.ad = new Array("emailAddress", "", new Function ("varName", " 
return this[varName];"));
}
The second parameter in the arrays should have the error message in it, but 
it comes out blank.
I can't see why, because I have the messages in the app resources file and 
the validation.xml is set up correctly, and I have the  
tag in the page.

Is there anything else it could be?

Any help would be greatly appreciated;




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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


_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



Show stopping validator problem.

2003-02-09 Thread Ray
Hi there.

I'm using the Javascript validator, and have run into a problem that I 
can't get around.

When a field is invalid, the Javascript dialog box just comes up empty, and 
I can't figure out why.  I had a look at the code generated in JavaScript, 
and it appears to be missing the actual error messages:

function required () {
 this.aa = new Array("name", "", new Function ("varName", " return 
this[varName];"));
 this.ab = new Array("address", "", new Function ("varName", " return 
this[varName];"));
 this.ac = new Array("telephoneNumber", "", new Function ("varName", " 
return this[varName];"));
 this.ad = new Array("emailAddress", "", new Function ("varName", " 
return this[varName];"));
}
The second parameter in the arrays should have the error message in it, but 
it comes out blank.
I can't see why, because I have the messages in the app resources file and 
the validation.xml is set up correctly, and I have the  
tag in the page.

Is there anything else it could be?

Any help would be greatly appreciated;




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Re: Struts Validator Problem

2003-01-17 Thread Dan Tran
check your validation.xml and makesure all dedined form field match with
your jsp field.  I ran to this before

hope this help

-D

- Original Message -
From: "Suresh Addagalla" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 17, 2003 6:42 AM
Subject: Struts Validator Problem


> Hi,
>
> I am facing a problem with Validator while doing client-side validation.
>
> IE is throwing the following error dialog when I submit the form:
>
> "type" is null or not an object
>
> The corresponding source code (validator generated) line the *second*
> line below:
>
> for (x in oRequired) {
> if ((form[oRequired[x][0]].type == 'text' ||
>  form[oRequired[x][0]].type == 'textarea' ||
>  form[oRequired[x][0]].type == 'select-one' ||
>  form[oRequired[x][0]].type == 'radio' ||
>  form[oRequired[x][0]].type == 'password') &&
> (form[oRequired[x][0]].value == '')) {
>
> Please let me know if anyone knows how to fix this problem.
>
> Thanks,
> Suresh
>
>






> --
> 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]>




Struts Validator Problem

2003-01-17 Thread Suresh Addagalla
Hi,

I am facing a problem with Validator while doing client-side validation.

IE is throwing the following error dialog when I submit the form:

"type" is null or not an object

The corresponding source code (validator generated) line the *second*
line below:

for (x in oRequired) {
if ((form[oRequired[x][0]].type == 'text' ||
 form[oRequired[x][0]].type == 'textarea' ||
 form[oRequired[x][0]].type == 'select-one' ||
 form[oRequired[x][0]].type == 'radio' ||
 form[oRequired[x][0]].type == 'password') &&
(form[oRequired[x][0]].value == '')) {

Please let me know if anyone knows how to fix this problem.

Thanks,
Suresh


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Struts Validator Problem

2003-01-17 Thread Suresh Addagalla
Hi,

I am facing a problem with Validator while doing client-side validation.

IE is throwing the following error dialog when I submit the form:

"type" is null or not an object

The corresponding source code (validator generated) line the *second*
line below:

for (x in oRequired) {
if ((form[oRequired[x][0]].type == 'text' ||
 form[oRequired[x][0]].type == 'textarea' ||
 form[oRequired[x][0]].type == 'select-one' ||
 form[oRequired[x][0]].type == 'radio' ||
 form[oRequired[x][0]].type == 'password') &&
(form[oRequired[x][0]].value == '')) {

Please let me know if anyone knows how to fix this problem.

Thanks,
Suresh


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Re: Struts Validator Problem

2003-01-14 Thread Rob Leland
Amit Keshav Kulkarni wrote:


Hi All

I facing problem in Validator - Struts 1.1 .

I am having two fields and checking for the empty fields.While submitting the form with empty fields,
I am getting the following error in Tomcat 4.0.3

This is the error  that it is throwing in the Browser..

java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java:380)
	at org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)
	at org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:250)
	at org.apache.jsp.login$jsp._jspService(login$jsp.java:185)


This doesn't look like a validator problem, since the error is occurring 
from the  Tag.
You don't seem to be using a recient struts 1.1 version because the line 
numbers in the trace don't match the current CVS source.

-Rob

 



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




Struts Validator Problem

2003-01-14 Thread Amit Keshav Kulkarni

Hi All

I facing problem in Validator - Struts 1.1 .

I am having two fields and checking for the empty fields.While submitting the form 
with empty fields,
I am getting the following error in Tomcat 4.0.3

This is the error  that it is throwing in the Browser..

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)
at org.apache.struts.taglib.html.MessagesTag.doStartTag(MessagesTag.java:250)
at org.apache.jsp.login$jsp._jspService(login$jsp.java:185)

This is my validation.xml


   
  
 
 
 
 
 
 

 
 
 


Regards
M.Saravanan


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




RE: Validator problem with optional fields

2003-01-08 Thread Alistair Cairns
Cary

Sorry this  email does not provide an answer to your problem. 

I am coming across exactly the same problem. I was using 1.1b2 and
downloaded 1.1b3. to overcome it. 

I see the problem with the minlength validator. 

if I have the following : 






minlength
2


 maxlength
 8

 

which defines an field with min length 2 and max length 8. In my case I
want this field to be optional. 
However the validator fails on javascript validation and pops up its
message to say the min length of field must be 2 when I enter nothing. 


The validation-rules.xml file is the 1.1b3 version, in which the min
length validator no longer depends on the required validator: 



The funny thing is that the mask validator seems to be ok in that the
following acts as an optional field ok (i.e. you can enter nothing or
you must enter 9 digits)

 
  




mask
[0-9]{8}

  

but perhaps the reason this works just shows my ignorance of regular
expressions! 


So, like you I am puzzled as how to get this to work. I don't want to
code stuff in the action forms for optional fields and I don't want to
have to create new validators for optional fields. 

Any help from anyone on handling optional fields with the validation
framework much appreciated. 

cheers

alistair

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




RE: Validator problem

2003-01-07 Thread Frank Livaudais
You need to add in the 'return':
 
 
onsubmit="return (validateLoginForm(this));"

-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 8:37 AM
To: [EMAIL PROTECTED]
Subject: Validator problem


Hi,
 
I am doing client-side validations using Validator framework. If I click on
the submit button, the form is getting submitted even if there are errors in
the form. How can I stop the form from being submitted when there are
errors? JavaScript alerts are being shown properly, but when I click on the
OK button, I want the form to remain unsubmitted.
 
I am using onsubmit="validateLoginForm(this) in  tag and am
including
 

 
before closing the  tag.
 
Thanks,
Suresh




Validator problem

2003-01-07 Thread Suresh Addagalla
Title: Message



Hi,
 
I am doing client-side 
validations using Validator framework. If I click on the submit button, the form 
is getting submitted even if there are errors in the form. How can I stop the 
form from being submitted when there are errors? _javascript_ alerts are being 
shown properly, but when I click on the OK button, I want the form to remain 
unsubmitted.
 
I am using 
onsubmit="validateLoginForm(this) in  tag and am 
including
 

 
before closing the 
 tag.
 
Thanks,
Suresh
**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***


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


Validator problem with optional fields

2003-01-06 Thread Mader, Cary J
I'm using the validator with Struts 1.1b3.  The release notes say that b3
fixes an issued with validator that I was having problems with in b2...where
all validations are treated as "required".   The problem I was having with
the date validator has gone away, but I'm still seeing the same problem with
some of the other validators such as mask and maxlength.  I've included a
partial example from the validation.xml for a form, that is validating a
field that should be optional, so I have not specified the "required"
validator in the depends attribute.  I've also included a snippet from the
validation-rules.xml file for the maxlength validator, which was updated in
1.1b3 to remove the "required" validator from the depends attribute.
However, the form still fails validation for the comment field, and I get
back a "required" error message.

Has anyone else had this problem?  Are there fixes for this in the nightly
build?  As a workaround, I can just override the validation method of the
action form and add my validations there, but I kind of like the validator
framework.

  
  



  maxlength
  255

  




  

Thanks,
Cary Mader


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




Re: Validator Problem

2002-11-13 Thread Andreas Langmann
> dynamicJavascript="false"

generates dynamic javascript specially for a specified formName
!this generated code needs the general javascript

> staticJavascript="true"

generates general javascript (functions for the generated code)

so you can generate in every page the dynamic code and the general code
only in one page.
(dont forget to include the general code - jsp-page into every page.

-- 
Dipl. Ing. (BA) Andreas Langmann
Software Developer

ISB AG 
Karlstr. 52-54   
76133 Karlsruhe

Telefon: +49 (0)721/82800-0
Telefax: +49 (0)721/82800-82

Email: [EMAIL PROTECTED]
Internet: http://www.isb-ag.de

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




Validator Problem

2002-11-13 Thread Yann Verlynde
Hello,

Excuse me for this silly question but I don't understand the difference between these 
2 attributes in html:javascript tag

dynamicJavascript="false" 
staticJavascript="true"

Thanks in advance



Struts Validator problem error with default values

2002-10-16 Thread Heligon Sandra


I use Struts Validator in my application and I have the following
error
on my JSP login page:

cannot be less than 3 characters. Password cannot be less than 3
characters. UsernamePassword

Username:
Password:



This error has to be displayed if a user select the login button
without
enter a loginName or password.
But not the first time that the page is displayed.
Is it due to the forward ?

My configuration is the following Struts1.1b2 with Tiles and
Validator:

struts_config.xml:

  


  















validation.xml:







maxlength
16


minlength
3








maxlength
16


minlength
3





Thanks in advance,




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




[Validator] problem accessing field args

2002-09-18 Thread Robert Taylor

I've implemented Dave Winterfeldts comparing two fields
example and want to simply display the message,

'Confirm Password' and 'New Password' do not match.

when the fields are not equal.


What I'm getting is
'Confirm Password' and null do not match.



This is a snippet of my validation.xml:


  
  
  
  
 minlength
 6
  
  
 maxlength
 12
  



  
  
  
  
  
minlength
6
  
  
maxlength
12
  
  
secondProperty
newPassword
  


I have the following in my ApplicationResources.properties file:
errors.compare={0} and {1} do not match.

form.account.currentPassword.displayName='Current Password'
form.account.newPassword.displayName='New Password'
form.account.confirmPassword.displayName='Confirm Password'



This is a snippet from my validator-rules.xml file:




I looked into the source code and found that the
StrutsValidatorUtil.getArgs() was responsible for retrieving the arguments
from the field for the ActionError message. I put in  some debug statements
and found that it was not "seeing" the other arguments.


arg0: Arg: name=null  key=form.account.confirmPassword.displayName
resource=true
arg1: null
arg2: null
arg3: null


So, I'm stumped. I've spent the last 4 hours on this and am convinced it
must be a simple configuration issue or something I'm missing. I was hoping
a fresh mind might be able to guide me to a solution.

TIA,

robert


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




Re: Validator problem!

2002-08-16 Thread Marco Maier

I know about that, just like...

public ActionErrors validate(ActionMapping mapping, HttpServletRequest 
request)
{
ActionErrors errors = new ActionErrors();

// check only if the second radio button is selected
if(this.selected.equals("1") && !DateUtils.isDateValid(this.day,
 this.month, this.year))
{
  ActionError newError = new ActionError("global.error.invalid_date");
  errors.add(ActionErrors.GLOBAL_ERROR, newError);
}

return errors;
}

but I want use dynamic forms. One solution is to use javascript that 
detects when the current date is selected. Then get the current system
date an put it to the validator. But this isn't nice for me.

Marco


Zimmer, Robin (SSABSA) wrote:
> Once simple option is just to use a plain old ActionForm and override the
> validate method.
> 
> -Original Message-
> From: Marco Maier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 16 August 2002 5:48 PM
> To: Struts Users Mailing List
> Subject: Validator problem!
> 
> 
> Hi,
> 
> Im using the struts validator to validate a date in an DynaValidatorForm.
> In my JSP I have two radio buttons where the user can
> choose between the current date and an input field that requires
> an valid date.
> The Struts validator always validates the date from the
> input field. But I want that the validator doesn't
> validate the date when the current date is selected.
> 
> How can I disable the validation when the
> current date radio button is selected?
> 
> TIA
> Marco
> 
> 
> 
> 
> 
> --
> 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 problem!

2002-08-16 Thread Zimmer, Robin (SSABSA)

Once simple option is just to use a plain old ActionForm and override the
validate method.

-Original Message-
From: Marco Maier [mailto:[EMAIL PROTECTED]]
Sent: Friday, 16 August 2002 5:48 PM
To: Struts Users Mailing List
Subject: Validator problem!


Hi,

Im using the struts validator to validate a date in an DynaValidatorForm.
In my JSP I have two radio buttons where the user can
choose between the current date and an input field that requires
an valid date.
The Struts validator always validates the date from the
input field. But I want that the validator doesn't
validate the date when the current date is selected.

How can I disable the validation when the
current date radio button is selected?

TIA
Marco





--
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]>




Validator problem!

2002-08-16 Thread Marco Maier

Hi,

Im using the struts validator to validate a date in an DynaValidatorForm.
In my JSP I have two radio buttons where the user can
choose between the current date and an input field that requires
an valid date.
The Struts validator always validates the date from the
input field. But I want that the validator doesn't
validate the date when the current date is selected.

How can I disable the validation when the
current date radio button is selected?

TIA
Marco





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




RE: Validator problem (HELP ME PLS)

2002-06-21 Thread wbchmura


In an effort to get this resolved before I go home for the weekend, I 
have zipped up my application and posted it at the following URL

http://www.e-bind.com/plantsec.zip (2.5 mb)

I run everything here on Tomcat403.  There is a datasource defined in 
the struts-config, but you probably wont need to get that far to see 
what the problem is...  You should be able to drop this into your 
web-apps directory

The issue is not being able to get the error messages back from 
DynaFormValidator...
(Although something is in there)

You have my gratitude






-Original Message-
From: Chmura, William B. 
Sent: Friday, June 21, 2002 9:31 AM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



I did a logic:messagesPresent and it showed that there was some messages 

present.

Unfortunately neither

 
or

   

 


produces any output...



ARRRHHH.

This is driving me absolutely insane...

If I can get this working before the weekend starts I will be ecstatic








-Original Message-
From: dwinterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 5:01 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)


The change from using multiple set-property elements
was made right after beta since it wasn't very clear
to call setPathname muliple times.  The Validator is
run through the ActionForm's validate method and
returns a standard ActionErrors object.  The
additional tags that used to come with the Validator
were for features now incorporated into Struts.

html:messages - Iterate through messages/errors.

logic:messagesPresent - check for the presence of a
message/error (can pass in an optional property to
check if there is a message/error for an individual
field)

logic:messagesNotPresent - check for the absence of a
message/error

David


--- [EMAIL PROTECTED] wrote:
> 
> the problem I was having was caused by the
> struts-config.xml file 
> defining the plug in like:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
> 
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/>
> 
> 
> I took a look at the struts blank war and copied
> that syntax over which 
> is like this:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
>  value="/WEB-INF/validator-rules.xml"/>
>  value="/WEB-INF/validator.xml"/>
> 
> 
> And it started recognizing my rules.  Now I cannot
> get it to show error 
> messages, although it does successfully redirect
> back until the 
> validation requirements are met.  Does validator
> feed the error messages 
> into the normal html:errors?  I noticed it had a
> validator taglib at one 
> point, but I am not sure where it is now that 1.1b
> incorporated alot
> 
> 
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Thursday, June 20, 2002 9:46 AM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Where I have this in my validator.xml file...
> 
> ?1 This means it should give me an error if it is
> not filled in?
> ?2 Should I have to invoke something from the action
> to check it, or is 
> it just like an actionform?
> ?3 What else can I try?  Its like its all working,
> just ignoring my 
> validate.xml file or something
> 
>depends="required">
> key="registrationForm.firstname.displayname"/>
>  
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Wednesday, June 19, 2002 4:54 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Nope...  Code runs, but it detects no errors...
> 
> AAARRGHHH
> 
> -Original Message-
> From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 19, 2002 4:29 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Lot's of stuff in your action class, but I see that
> you defined a
> DynaValidatorForm in your  but you are
> casting it as a
> DynaActionForm in your action class...if you cast it
> correctly as a
> DynaValidatorForm and then invoke the validate()
> method (like in my
> previous email), it might correct the problem...try
> it...
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] on 06/19/2002
> 01:24:28 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Here is

RE: Validator problem (or user problem... not sure which yet)

2002-06-21 Thread wbchmura


I did a logic:messagesPresent and it showed that there was some messages 
present.

Unfortunately neither

 
or

   

 


produces any output...



ARRRHHH.

This is driving me absolutely insane...

If I can get this working before the weekend starts I will be ecstatic








-Original Message-
From: dwinterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 5:01 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)


The change from using multiple set-property elements
was made right after beta since it wasn't very clear
to call setPathname muliple times.  The Validator is
run through the ActionForm's validate method and
returns a standard ActionErrors object.  The
additional tags that used to come with the Validator
were for features now incorporated into Struts.

html:messages - Iterate through messages/errors.

logic:messagesPresent - check for the presence of a
message/error (can pass in an optional property to
check if there is a message/error for an individual
field)

logic:messagesNotPresent - check for the absence of a
message/error

David


--- [EMAIL PROTECTED] wrote:
> 
> the problem I was having was caused by the
> struts-config.xml file 
> defining the plug in like:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
> 
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/>
> 
> 
> I took a look at the struts blank war and copied
> that syntax over which 
> is like this:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
>  value="/WEB-INF/validator-rules.xml"/>
>  value="/WEB-INF/validator.xml"/>
> 
> 
> And it started recognizing my rules.  Now I cannot
> get it to show error 
> messages, although it does successfully redirect
> back until the 
> validation requirements are met.  Does validator
> feed the error messages 
> into the normal html:errors?  I noticed it had a
> validator taglib at one 
> point, but I am not sure where it is now that 1.1b
> incorporated alot
> 
> 
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Thursday, June 20, 2002 9:46 AM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Where I have this in my validator.xml file...
> 
> ?1 This means it should give me an error if it is
> not filled in?
> ?2 Should I have to invoke something from the action
> to check it, or is 
> it just like an actionform?
> ?3 What else can I try?  Its like its all working,
> just ignoring my 
> validate.xml file or something
> 
>depends="required">
> key="registrationForm.firstname.displayname"/>
>  
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Wednesday, June 19, 2002 4:54 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Nope...  Code runs, but it detects no errors...
> 
> AAARRGHHH
> 
> -Original Message-
> From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 19, 2002 4:29 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Lot's of stuff in your action class, but I see that
> you defined a
> DynaValidatorForm in your  but you are
> casting it as a
> DynaActionForm in your action class...if you cast it
> correctly as a
> DynaValidatorForm and then invoke the validate()
> method (like in my
> previous email), it might correct the problem...try
> it...
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] on 06/19/2002
> 01:24:28 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Here is everything:
> 
> Thanks in advance for any solutions!
> 
> 
> Struts-config.xml
> 
> 
>  Foundation//DTD
> Struts Configuration 1.1//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> 
>  property="autoCommit" value="false" /> property="description" value="MySql" /> property="driverClass"
> value="org.gjt.mm.mysql.Driver" /> property="maxCount" value="4" /> property="minCount"
> value="2" /> value="vuud"
> /> /> property="url"
> value="jdbc:mysql://localhost/plantsecur

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread David Winterfeldt

The change from using multiple set-property elements
was made right after beta since it wasn't very clear
to call setPathname muliple times.  The Validator is
run through the ActionForm's validate method and
returns a standard ActionErrors object.  The
additional tags that used to come with the Validator
were for features now incorporated into Struts.

html:messages - Iterate through messages/errors.

logic:messagesPresent - check for the presence of a
message/error (can pass in an optional property to
check if there is a message/error for an individual
field)

logic:messagesNotPresent - check for the absence of a
message/error

David


--- [EMAIL PROTECTED] wrote:
> 
> the problem I was having was caused by the
> struts-config.xml file 
> defining the plug in like:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
> 
value="/WEB-INF/validator-rules.xml,/WEB-INF/validator.xml"/>
> 
> 
> I took a look at the struts blank war and copied
> that syntax over which 
> is like this:
> 
> 
className="org.apache.struts.validator.ValidatorPlugIn">
>  value="/WEB-INF/validator-rules.xml"/>
>  value="/WEB-INF/validator.xml"/>
> 
> 
> And it started recognizing my rules.  Now I cannot
> get it to show error 
> messages, although it does successfully redirect
> back until the 
> validation requirements are met.  Does validator
> feed the error messages 
> into the normal html:errors?  I noticed it had a
> validator taglib at one 
> point, but I am not sure where it is now that 1.1b
> incorporated alot
> 
> 
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Thursday, June 20, 2002 9:46 AM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Where I have this in my validator.xml file...
> 
> ?1 This means it should give me an error if it is
> not filled in?
> ?2 Should I have to invoke something from the action
> to check it, or is 
> it just like an actionform?
> ?3 What else can I try?  Its like its all working,
> just ignoring my 
> validate.xml file or something
> 
>depends="required">
> key="registrationForm.firstname.displayname"/>
>  
> 
> -Original Message-
> From: Chmura, William B. 
> Sent: Wednesday, June 19, 2002 4:54 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Nope...  Code runs, but it detects no errors...
> 
> AAARRGHHH
> 
> -Original Message-
> From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 19, 2002 4:29 PM
> To: struts-user
> Subject: RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Lot's of stuff in your action class, but I see that
> you defined a
> DynaValidatorForm in your  but you are
> casting it as a
> DynaActionForm in your action class...if you cast it
> correctly as a
> DynaValidatorForm and then invoke the validate()
> method (like in my
> previous email), it might correct the problem...try
> it...
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] on 06/19/2002
> 01:24:28 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:
> Subject:  RE: Validator problem (or user problem...
> not sure which yet)
> 
> 
> 
> Here is everything:
> 
> Thanks in advance for any solutions!
> 
> 
> Struts-config.xml
> 
> 
>  Foundation//DTD
> Struts Configuration 1.1//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
> 
>  property="autoCommit" value="false" /> property="description" value="MySql" /> property="driverClass"
> value="org.gjt.mm.mysql.Driver" /> property="maxCount" value="4" /> property="minCount"
> value="2" /> value="vuud"
> /> /> property="url"
> value="jdbc:mysql://localhost/plantsecurity"
> />
> 
>  type="org.apache.struts.validator.DynaValidatorForm"
> dynamic="true">
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String" initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.String"
> initial="" />
>  type="java.lang.S

RE: Validator problem (or user problem... not sure which yet)

2002-06-20 Thread wbchmura


the problem I was having was caused by the struts-config.xml file 
defining the plug in like:





I took a look at the struts blank war and copied that syntax over which 
is like this:






And it started recognizing my rules.  Now I cannot get it to show error 
messages, although it does successfully redirect back until the 
validation requirements are met.  Does validator feed the error messages 
into the normal html:errors?  I noticed it had a validator taglib at one 
point, but I am not sure where it is now that 1.1b incorporated alot



-Original Message-
From: Chmura, William B. 
Sent: Thursday, June 20, 2002 9:46 AM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Where I have this in my validator.xml file...

?1 This means it should give me an error if it is not filled in?
?2 Should I have to invoke something from the action to check it, or is 
it just like an actionform?
?3 What else can I try?  Its like its all working, just ignoring my 
validate.xml file or something

 
   
 

-Original Message-
From: Chmura, William B. 
Sent: Wednesday, June 19, 2002 4:54 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Nope...  Code runs, but it detects no errors...

AAARRGHHH

-Original Message-
From: Raffy.Lata [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 4:29 PM
To: struts-user
Subject: RE: Validator problem (or user problem... not sure which yet)



Lot's of stuff in your action class, but I see that you defined a
DynaValidatorForm in your  but you are casting it as a
DynaActionForm in your action class...if you cast it correctly as a
DynaValidatorForm and then invoke the validate() method (like in my
previous email), it might correct the problem...try it...





[EMAIL PROTECTED] on 06/19/2002 01:24:28 PM

Please respond to "Struts Users Mailing List"
  <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  RE: Validator problem (or user problem... not sure which yet)



Here is everything:

Thanks in advance for any solutions!


Struts-config.xml


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






















































Validator.xml


   
   
   

   

 
   
 

 
   
 

 
   
 

 
   
 

 
   
 

   









actionCreateNew.java

package com.ebind.plantsec.create;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.*;
import java.util.Locale;
import java.util.Vector;
import java.util.ArrayList;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.text.ParsePosition;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionServlet;
import org.apache.struts.util.MessageResources;
import com.ebind.plantsec.visitors.*;
import javax.sql.*;
import com.ebind.plantsec.database.*;
import org.apache.struts.action.DynaActionForm;

/**
 *
 */
public final class actionCreateNew extends Action {


public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
 throws IOException, ServletException {

HttpSession session = request.getSession();
DynaActionForm myForm = (DynaActionForm) form;

System.out.println("ActionCreateNew: >" +
myForm.get("employeeLastName") + "<");


// Now we want to make a plantvisit bean and move all the data
into it
if (myForm.get("employeeLastName") == null ||
"".equals(myForm.get("employeeLastName"))) {

System.out.println("ELN not set");
return (mapping.findForward("continue"));
}

beanVisitorRequest vreq = new beanVisitorRequest();


// Set the required fields (already been checked to see if they
are present)
vreq.setEmployeeLastName
((String)myForm.get("employeeLastName"));
vreq.setEmployeeFirstName
((String)myForm.get("employeeFirstName"));
vreq.setEmployeeContactInfo ((Stri

Re: Validator Problem

2002-03-17 Thread David Winterfeldt

These tags were deprecated for a while and when the
Validator was repackaged under
org.apache.struts.validator they weren't moved over
since there are the equivalent tags in Struts.  So
they might not be there depending on what version of
the Validator you are using.

validator:errorsExist --> logic:messagesExist
validator:errors --> html:messages

If you download a release before the last one
(1/14/2002), the tags are still there.  
   http://home.earthlink.net/~dwinterfeldt

David

--- Barry Glasco <[EMAIL PROTECTED]> wrote:
> 
> 
> Environment: Weblogic 6.1. sp2 
> 
> Jsp tag: 
> 
> <%@ taglib uri="/WEB-INF/tlds/struts-html.tld"
> prefix="html" %> 
> <%@ taglib uri="/WEB-INF/tlds/struts-validator.tld"
> prefix="validator" %> 
>  
> 
> 
> 
>
> 
> 
>  
> 
> 
> 
> ERROR MESSAGE: 
> 
>   
> <[WebAppServletContext(6657758,veh 
> -web,/veh-web)] Root cause of ServletException 
> javax.servlet.jsp.JspException: (line 19): no
> handler for tagname='errorsExist' 
> at
>
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1
> 
> 49) 
> at
>
jsp_servlet.__department._jspService(__department.java:274)
> 
> at
>
weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
> 
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> 
> pl.java:265) 
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> 
> pl.java:304) 
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
> 
> pl.java:200) 
> at
>
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> 
> rvletContext.java:2495) 
> at
>
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> 
> pl.java:2204) 
> at
>
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Validator Problem

2002-03-17 Thread Barry Glasco



Environment: Weblogic 6.1. sp2 

Jsp tag: 

<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> 
<%@ taglib uri="/WEB-INF/tlds/struts-validator.tld" prefix="validator" %> 
 



   


 



ERROR MESSAGE: 

   <[WebAppServletContext(6657758,veh 
-web,/veh-web)] Root cause of ServletException 
javax.servlet.jsp.JspException: (line 19): no handler for tagname='errorsExist' 
at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:1 
49) 
at jsp_servlet.__department._jspService(__department.java:274) 
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:265) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:304) 
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm 
pl.java:200) 
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe 
rvletContext.java:2495) 
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm 
pl.java:2204) 
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) 


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




Re: Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread David Winterfeldt

The ActionMessage class is in the more recent nightly
builds of Struts.  Are you using html:messages?  This
uses that class.  I'm not what else would be looking
for this in a JSP page though.  The validator tags
shouldn't be making a reference to this class.  

To check if the ValidatorResources are loading you can
see something print to the console window if the debug
for the ValidatorServlet is set to greater than 1.  I
would try to get the server side validation working
before testing the client side.  Once the server side
is working, the client side validation shouldn't be a
problem.

David

--- Sandeep Takhar <[EMAIL PROTECTED]> wrote:
> search the archives for more postings, but I have
> heard different approaches when I posted the same
> problem.
> 
> 1. Check to see that you are using the latest Struts
> nightly build.
> 
> 2. If not using hte latest nightly build, this may
> work if you use Tomcat 4.0
> 
> 3. Remove Jaxp, crimson and parser.jar files and add
> xerces.jar file.
> 
> The first one makes sense to me and the last two I
> am
> puzzled about.
> 
> The main thing is that ActionMessage is a new class
> to
> the nightly builds.  However this may be
> circumvented
> (the use of the ActionMessage) by changing the JSP
> to
> not use the new feature (at least this is what I
> have
> been told).
> 
> Sorry if I am confusing you, but as you can probably
> tell, i myself am confused, but since I do not have
> to
> do the work immediately, I have been holding off
> figuring out exactly what the problem is.
> 
> - Sandeep
> 
> --- Parvaze Suleman <[EMAIL PROTECTED]>
> wrote:
> > Hi 
> > I am trying to use Validator in my application and
> > can not get it to work. I
> > have a single test form that I would like to use
> the
> > Validator for
> > client-side and server-side validation. If I add
> the
> > following
> > 
> > <%@ taglib uri="/WEB-INF/struts-validator.tld"
> > prefix="validator" %>
> > 
> > reference to the taglib to the test form JSP page,
> > when I access this JSP
> > page after deploying the application, I get a
> > NoClassDefFoundError exception
> > thrown (see full message at the end of this
> email).
> > If I remove the taglib
> > reference, I don't get the error but the
> validation
> > rules don't get applied
> > either.
> > 
> > The latest version of the struts-validator.jar
> file
> > and the
> > struts-validator.tld files are in the WEB-INF/libs
> > directory.
> > 
> > Thanks in advance for any help received.
> > 
> >
>

> > 
> > 
> > My web.xml file is defined as follows:
> > 
> > .
> >
> >   validator
> >  
> >
>
com.wintecinc.struts.action.ValidatorServlet
> >   
> >  config
> > 
> > /WEB-INF/validation.xml
> >   
> >   
> >  debug
> >  2
> >   
> >   2
> >
> > 
> > 
> >
> >  
> >
> /tags/struts-validator.tld
> >  
> >
>
/WEB-INF/struts-validator.tld
> >   
> > 
> > 
> > 
> > My Validation.xml file is defined as below:
> > 
> > 
> >
> > 
> >> 
> >
>
classname="com.wintecinc.struts.validation.StrutsValidator"
> >  method="validateRequired"
> >  msg="error.required">
> >  
> >  
> >   
> >
> >
> >   
> >   >depends="required,mask">
> > 
> >  > key="prompt.personalDetailsForm.fname.maskmsg"/>
> > 
> > 
> >   mask
> >   ^[a-zA-Z]*$
> > 
> >  
> >   
> >
> > 
> > 
> > 
> > 
> > 
> > ERROR TEXT
> >
>
==
> > 
> > <01-Nov-01 11:37:51 GMT>  
> > <[WebAppServletContext(2791227,olympus,/olympus)]
> r
> > esolved taglib uri '/WEB-INF/struts-html.tld' to
> > taglib-location
> > /WEB-INF/struts-html.tld:
> > >
> > <01-Nov-01 11:37:52 GMT>  
> > <[WebAppServletContext(2791227,olympus,/olympus)]
> > Servlet failed with Exception
> > java.lang.NoClassDefFoundError:
> > org/apache/struts/action/ActionMessage
> > at java.lang.Class.getMethods0(Native
> > Method)
> > at
> >
> java.lang.Class.getDeclaredMethods(Class.java:1039)
> > at
> >
> java.beans.Introspector$1.run(Introspector.java:852)
> 
=== message truncated ===


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

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




Re: Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread Sandeep Takhar

search the archives for more postings, but I have
heard different approaches when I posted the same
problem.

1. Check to see that you are using the latest Struts
nightly build.

2. If not using hte latest nightly build, this may
work if you use Tomcat 4.0

3. Remove Jaxp, crimson and parser.jar files and add
xerces.jar file.

The first one makes sense to me and the last two I am
puzzled about.

The main thing is that ActionMessage is a new class to
the nightly builds.  However this may be circumvented
(the use of the ActionMessage) by changing the JSP to
not use the new feature (at least this is what I have
been told).

Sorry if I am confusing you, but as you can probably
tell, i myself am confused, but since I do not have to
do the work immediately, I have been holding off
figuring out exactly what the problem is.

- Sandeep

--- Parvaze Suleman <[EMAIL PROTECTED]> wrote:
> Hi 
> I am trying to use Validator in my application and
> can not get it to work. I
> have a single test form that I would like to use the
> Validator for
> client-side and server-side validation. If I add the
> following
> 
> <%@ taglib uri="/WEB-INF/struts-validator.tld"
> prefix="validator" %>
> 
> reference to the taglib to the test form JSP page,
> when I access this JSP
> page after deploying the application, I get a
> NoClassDefFoundError exception
> thrown (see full message at the end of this email).
> If I remove the taglib
> reference, I don't get the error but the validation
> rules don't get applied
> either.
> 
> The latest version of the struts-validator.jar file
> and the
> struts-validator.tld files are in the WEB-INF/libs
> directory.
> 
> Thanks in advance for any help received.
> 
>

> 
> 
> My web.xml file is defined as follows:
> 
> .
>
>   validator
>  
>
com.wintecinc.struts.action.ValidatorServlet
>   
>  config
> 
> /WEB-INF/validation.xml
>   
>   
>  debug
>  2
>   
>   2
>
> 
> 
>
>  
> /tags/struts-validator.tld
>  
>
/WEB-INF/struts-validator.tld
>   
> 
> 
> 
> My Validation.xml file is defined as below:
> 
> 
>
> 
>
>
classname="com.wintecinc.struts.validation.StrutsValidator"
>  method="validateRequired"
>  msg="error.required">
>  
>  
>   
>
>
>   
>  depends="required,mask">
> 
>  key="prompt.personalDetailsForm.fname.maskmsg"/>
> 
> 
>   mask
>   ^[a-zA-Z]*$
> 
>  
>   
>
> 
> 
> 
> 
> 
> ERROR TEXT
>
==
> 
> <01-Nov-01 11:37:51 GMT>  
> <[WebAppServletContext(2791227,olympus,/olympus)] r
> esolved taglib uri '/WEB-INF/struts-html.tld' to
> taglib-location
> /WEB-INF/struts-html.tld:
> >
> <01-Nov-01 11:37:52 GMT>  
> <[WebAppServletContext(2791227,olympus,/olympus)]
> Servlet failed with Exception
> java.lang.NoClassDefFoundError:
> org/apache/struts/action/ActionMessage
> at java.lang.Class.getMethods0(Native
> Method)
> at
> java.lang.Class.getDeclaredMethods(Class.java:1039)
> at
> java.beans.Introspector$1.run(Introspector.java:852)
> at
> java.security.AccessController.doPrivileged(Native
> Method)
> at
>
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
> at
>
java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
> at
>
java.beans.Introspector.getBeanInfo(Introspector.java:294)
> at
>
java.beans.Introspector.getBeanInfo(Introspector.java:128)
> at
>
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
> at
>
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:941)
> at
>
weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:207)
> at
>
weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
> at
>
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4177)
> at
>
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4018)
> at
>
weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3865)
> at
>
weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2039)
> at
>
weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1853)
> at
>
weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1735)
> at
>
weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1015)
> at
>
weblogic.servlet.jsp.JspParser.doit(JspParser.java:78)
> at
>
weblogic.servlet.jsp.JspParser.parse(JspParser.java:181)
> at
>
weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
> at
>
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
> at
>
weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
> at
>

Struts-Validator problem: NoClassDefFoundError

2001-11-01 Thread Parvaze Suleman

Hi 
I am trying to use Validator in my application and can not get it to work. I
have a single test form that I would like to use the Validator for
client-side and server-side validation. If I add the following

<%@ taglib uri="/WEB-INF/struts-validator.tld" prefix="validator" %>

reference to the taglib to the test form JSP page, when I access this JSP
page after deploying the application, I get a NoClassDefFoundError exception
thrown (see full message at the end of this email). If I remove the taglib
reference, I don't get the error but the validation rules don't get applied
either.

The latest version of the struts-validator.jar file and the
struts-validator.tld files are in the WEB-INF/libs directory.

Thanks in advance for any help received.




My web.xml file is defined as follows:

.
   
  validator
 
com.wintecinc.struts.action.ValidatorServlet
  
 config
 /WEB-INF/validation.xml
  
  
 debug
 2
  
  2
   


   
  /tags/struts-validator.tld
  /WEB-INF/struts-validator.tld
  



My Validation.xml file is defined as below:


   

  
 
 
  
   
   
  
 




  mask
  ^[a-zA-Z]*$

 
  
   





ERROR TEXT
==

<01-Nov-01 11:37:51 GMT>  
<[WebAppServletContext(2791227,olympus,/olympus)] r
esolved taglib uri '/WEB-INF/struts-html.tld' to taglib-location
/WEB-INF/struts-html.tld:
>
<01-Nov-01 11:37:52 GMT>  
<[WebAppServletContext(2791227,olympus,/olympus)]
Servlet failed with Exception
java.lang.NoClassDefFoundError: org/apache/struts/action/ActionMessage
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getDeclaredMethods(Class.java:1039)
at java.beans.Introspector$1.run(Introspector.java:852)
at java.security.AccessController.doPrivileged(Native Method)
at
java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:850)
at java.beans.Introspector.getTargetEventInfo(Introspector.java:556)
at java.beans.Introspector.getBeanInfo(Introspector.java:294)
at java.beans.Introspector.getBeanInfo(Introspector.java:128)
at
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1003)
at
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:941)
at
weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:207)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4177)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4018)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3865)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2039)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1853)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1735)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1015)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:78)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:181)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
at
weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:327)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:154)
at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:36
8)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:24
2)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:30
4)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:20
0)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
nte
xt.java:2456)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:20
39)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<01-Nov-01 11:39:13 GMT>   

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