validator-rules.xml

2004-03-04 Thread Adam Hardy
Where can I get the latest validator-rules.xml from?

I looked for it on jakarta-struts website and jakarta-commons, but can't 
find it. Even checked the archives before coming here to make myself 
look foolish.

Obviously I am assuming that this is a standard part of the code base - 
or is it? I need the latest javascript for the validate-url rule, that's 
why. But then it occurred to me that it might be the same as 
struts-config.xml, i.e. roll-your-own.

Thanks
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: validator-rules.xml

2004-03-04 Thread Wendy Smoak
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Where can I get the latest validator-rules.xml from?

In the 1.2.0 distribution, it's in the 'lib' subdirectory along with the
.jar files.

> Obviously I am assuming that this is a standard part of the 
> code base - or is it? I need the latest javascript for the
validate-url 
> rule, that's why. But then it occurred to me that it might be the same
as 
> struts-config.xml, i.e. roll-your-own.

The part you write generally goes in validation.xml.  For instance, I
have some custom validators, and I added a  section to the top
of validation.xml to define them.  That is also where I have the 
and  tags.  

The file names are arbitrary, you can change them as long as the
Validator plugin tag in struts-config.xml matches.  But, as delivered,
the provided rules are in validator-rules.xml, and the convention is to
do your custom setup in validation.xml.

-- 
Wendy Smoak
Application Systems Analyst, Sr.
ASU IA Information Resources Management 

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



Re: validator-rules.xml

2004-03-04 Thread Niall Pemberton
validation-rules.xml is here
  http://cvs.apache.org/viewcvs.cgi/jakarta-struts/conf/share/

but, with struts 1.2 the javascript moved out of the XML into .js files
in commons here:

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/validator/src/javascript/org/apache/commons/validator/javascript/

However, although there is a validateUrl method in the struts FieldChecks
class, I don't think the validation-rules.xml shipped with struts has ever
had a validator defined which uses it and therefore there is no javascript
in 1.1 and there doesn't appear to be a valudateUrl.js file in struts 1.2.

Doesn't make alot of sense to me, to go to the trouble of writing a
validateUrl method in FieldChecks and not ship the config - maybe somone
else will know more


Niall

- Original Message - 
From: "Adam Hardy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 04, 2004 4:44 PM
Subject: validator-rules.xml


> Where can I get the latest validator-rules.xml from?
>
> I looked for it on jakarta-struts website and jakarta-commons, but can't
> find it. Even checked the archives before coming here to make myself
> look foolish.
>
> Obviously I am assuming that this is a standard part of the code base -
> or is it? I need the latest javascript for the validate-url rule, that's
> why. But then it occurred to me that it might be the same as
> struts-config.xml, i.e. roll-your-own.
>
> Thanks
> Adam
> -- 
> struts 1.1 + tomcat 5.0.16 + java 1.4.2
> Linux 2.4.20 Debian
>
>
> -
> 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-rules.xml

2004-03-04 Thread Adam Hardy
OK, well I can't find the validator-rules.xml anywhere else, so I guess 
I'll have to download the struts 1.2 binary!

I was looking through the validator's urlValidator class and it's pretty 
complicated with lots of perl-based pattern matching, so I'm not 
surprised there's no javascript equivalent (yet... hopefully)

Thanks for the pointers.

Adam

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


validator-rules.xml ignores datePattern param

2003-01-14 Thread Gemes Tibor
It seems to me as if dateValidation javascript ignores the datePattern so if I 
provide this parameter then only server side validation occures in this case. 

Is this the required behaviour? 

Tib

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




bug in latest validator-rules.xml ?

2004-01-30 Thread Joe Germuska
Between versions 1.47 and 1.48 of conf/share/validator-rules.xml, the 
"javascript" block for validateRequired was removed.  Now when I drop 
that file into my webapp, my form which only has required validations 
comes up with this as the entirety of its JavaScript block:

</tt><br>
<br>
<tt><!-- Begin</tt><br>
<br>
<tt> var bCancel = false;</tt><br>
<br>
<pre style="margin: 0em;">function validateForm(form) {
if (bCancel)
  return true;
else
   return true;
   }</pre><br>
<pre style="margin: 0em;">//End -->

When I use 1.47, I get the normal behavior.  This form only has 
required validations, so I'm assuming it's related to the removal of 
the javascript for validateRequired, which is the change between 
these versions.

Is there something I'm supposed to know to switch to the latest 
version of validator-rules?   I'm using commons-validator-1.1.1.jar 
and the Struts nightlies from sometime in the last week.  Do I need a 
newer commons-validator?

I'll file a bug if it's a bug, but I thought I'd ask if there was 
some documentation that I'd missed before doing that.

Joe

--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


Validator classes and validator-rules.xml

2004-03-08 Thread Chris Searle

I'm getting an odd exception:

2004-03-08 11:19:41,405 ERROR [org.apache.commons.validator.Validator] reflection: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
java.lang.NoSuchMethodException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
   at java.lang.Class.getMethod(Class.java:978)
at 
org.apache.commons.validator.Validator.executeValidationMethod(Validator.java:501)
at 
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:424)
at org.apache.commons.validator.Validator.validateField(Validator.java:669)
at org.apache.commons.validator.Validator.validate(Validator.java:745)
at 
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:150)

The parameter list shown in the NoSuchMethodException appears to match
the validator-rules.xml file:

 

apart from the fourth parameter (ActionMessages vs ActionErrors) but
this is probably OK since ActionErrors is a subclass of
ActionMessages.

This parameter list also matches the javadoc.

NB: This is the Nightly Build binary download !!! I can't recall why -
just that I had a bug in the stable build that was fixed in the
nightly's. However - I've just changed from the old nightly to
20040306 (20040307 seems to be 163 bytes long) to test - and the same
problem with validation occurs.

Any hints anyone?

-- 
Chris Searle
[EMAIL PROTECTED]


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



validator-rules.xml with netscape - bug report.

2002-11-25 Thread Arik Levin ( Tikal )
HI all.

I have this cross platform issue and when it comes to
validator-rules.xml I had a problem which I wanted to share with you.

In the validator-rules.xml the parsing popup alert message has a bug
in netscpae.

The line alert(fields.join('\n')); is fine for explorer but not in
netscape. The Join function does not do the work.

Instead I used it like this:

alert(join(fields,'\n'));


function join(arr,token)
{
/**
 *  Description:
 *  This function behaves like 'Join'
(Array function, which doesn't work in Netscape).
 *  The join method is used for join all
the elements of an array into a single string 
 *  separated by a specified string
separator (if none is specified, the default is a comma). 
 *
 *  parameters:
 *   arr: given Array object.
 *   token: string.
 *
 *  return: new parsed String.
*/

retStr = "";

if (arr)
{
if(arr.length > 0)
{
if (token != null) retStr =
replace(arr.toString(),",",token);
else retStr = arr.toString();
}
}

return retStr;
}


I thought it would be interesting to you all.

Ciao.




my validator-rules.xml - is it possible ?

2002-11-27 Thread Arik Levin ( Tikal )
Hi all.

Can I use couple of rules xml files, or must I enter my own rules into
validator-rules.xml ?

In this example I'm trying to use validator-my-rules.xml which includes my
own validation.

  



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




Re: bug in latest validator-rules.xml ?

2004-01-30 Thread Matt Bathje
Joe - this is working fine for me with the 1/13/2004 nightly build. I have
tried with commons-validator-1.1.1.jar and with whatever version the
commons-validator.jar in the 1/13 nightly build of struts is.

Validation worked right out of the box - all I did to "install" the nightly
build was copy over the jar, tld and xml files from the zip file.

Based on that it seems like if there is a bug, it is in struts and probably
in the newer nightly builds. (Doesn't seem like it would be in
validator-rules.xml itself though, that hasn't been updated since december)

Matt Bathje


- Original Message - 
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Users List" <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 10:54 AM
Subject: bug in latest validator-rules.xml ?


> Between versions 1.47 and 1.48 of conf/share/validator-rules.xml, the
> "javascript" block for validateRequired was removed.  Now when I drop
> that file into my webapp, my form which only has required validations
> comes up with this as the entirety of its JavaScript block:
>
> 
>
> <!-- Begin
>
>   var bCancel = false;
>
>  function validateForm(form) {
>  if (bCancel)
>return true;
>  else
> return true;
> }
>
> //End -->
> 
>
> When I use 1.47, I get the normal behavior.  This form only has
> required validations, so I'm assuming it's related to the removal of
> the javascript for validateRequired, which is the change between
> these versions.
>
> Is there something I'm supposed to know to switch to the latest
> version of validator-rules?   I'm using commons-validator-1.1.1.jar
> and the Struts nightlies from sometime in the last week.  Do I need a
> newer commons-validator?
>
> I'll file a bug if it's a bug, but I thought I'd ask if there was
> some documentation that I'd missed before doing that.
>
> Joe
>
>
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
>"Imagine if every Thursday your shoes exploded if you tied them
> the usual way.  This happens to us all the time with computers, and
> nobody thinks of complaining."
>  -- Jef Raskin
>
> -
> 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: bug in latest validator-rules.xml ?

2004-01-31 Thread Joe Germuska
At 11:54 AM -0600 1/30/04, Matt Bathje wrote:
Joe - this is working fine for me with the 1/13/2004 nightly build. I have
tried with commons-validator-1.1.1.jar and with whatever version the
commons-validator.jar in the 1/13 nightly build of struts is.
Validation worked right out of the box - all I did to "install" the nightly
build was copy over the jar, tld and xml files from the zip file.
Based on that it seems like if there is a bug, it is in struts and probably
in the newer nightly builds. (Doesn't seem like it would be in
validator-rules.xml itself though, that hasn't been updated since december)
Nah, the bug was in my commons-validator-1.1.1.jar  Somehow I got a 
version which didn't have the javascript in it.

Thanks for providing a "worksforme" though; it helped me look harder 
at my own install.

Joe

--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
  "Imagine if every Thursday your shoes exploded if you tied them 
the usual way.  This happens to us all the time with computers, and 
nobody thinks of complaining."
-- Jef Raskin

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


Re: Validator classes and validator-rules.xml

2004-03-08 Thread Adam Hardy
On 03/08/2004 12:02 PM Chris Searle wrote:
I'm getting an odd exception:

2004-03-08 11:19:41,405 ERROR [org.apache.commons.validator.Validator] reflection: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
java.lang.NoSuchMethodException: 
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object, 
org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, 
org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)
   at java.lang.Class.getMethod(Class.java:978)
at 
org.apache.commons.validator.Validator.executeValidationMethod(Validator.java:501)
at 
org.apache.commons.validator.Validator.validateFieldForRule(Validator.java:424)
at org.apache.commons.validator.Validator.validateField(Validator.java:669)
at org.apache.commons.validator.Validator.validate(Validator.java:745)
at 
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:150)
The parameter list shown in the NoSuchMethodException appears to match
the validator-rules.xml file:
 
apart from the fourth parameter (ActionMessages vs ActionErrors) but
this is probably OK since ActionErrors is a subclass of
ActionMessages.
This parameter list also matches the javadoc.

NB: This is the Nightly Build binary download !!! I can't recall why -
just that I had a bug in the stable build that was fixed in the
nightly's. However - I've just changed from the old nightly to
20040306 (20040307 seems to be 163 bytes long) to test - and the same
problem with validation occurs.
I think I might have had this and found that changing to ActionMessages 
did solve it, even though it seems unnecessary.  This was one of last 
week's builds. I don't think that reflection process takes inheritance 
into account.
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

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


validator-rules.xml - no stream could be opened

2003-07-04 Thread sriram
I'm using struts validator and when I deploy the application, I'm getting the 
following error.
 
18:05:00,957 INFO  [Engine] validator: Loading validation rules file from '/WEB-
INF/validator-rules.xml'
18:05:00,957 INFO  [Engine] validator: Skipping validation rules file from '/WEB
-INF/validator-rules.xml'.  No stream could be opened.
 
Any suggestios for solving this?


Re: validator-rules.xml with netscape - bug report.

2002-11-25 Thread David Graham
Netscape does support the join function as documented here:
http://wp.netscape.com/eng/mozilla/3.0/handbook/javascript/

David







From: "Arik  Levin ( Tikal )" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: validator-rules.xml with netscape - bug report.
Date: Mon, 25 Nov 2002 18:55:58 +0200

HI all.

	I have this cross platform issue and when it comes to
validator-rules.xml I had a problem which I wanted to share with you.

	In the validator-rules.xml the parsing popup alert message has a bug
in netscpae.

	The line alert(fields.join('\n')); is fine for explorer but not in
netscape. The Join function does not do the work.

	Instead I used it like this:

	alert(join(fields,'\n'));


		function join(arr,token)
		{
		/**
		 *  Description:
		 *  	This function behaves like 'Join'
(Array function, which doesn't work in Netscape).
		 *		The join method is used for join all
the elements of an array into a single string
		 *		separated by a specified string
separator (if none is specified, the default is a comma).
		 *
		 *  parameters:
		 *		 arr: given Array object.
		 *	 token: string.
		 *
		 *  return: new parsed String.
		*/

		retStr = "";

		if (arr)
		{
		if(arr.length > 0)
		{
		if (token != null) retStr =
replace(arr.toString(),",",token);
		else retStr = arr.toString();
		}
		}

		return retStr;
		}


		I thought it would be interesting to you all.

		Ciao.




_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



RE: my validator-rules.xml - is it possible ?

2002-11-27 Thread Arik Levin ( Tikal )
It's working... thanx anyway.


-Original Message-
From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 4:54 PM
To: Struts Users Mailing List
Subject: my validator-rules.xml - is it possible ?

Hi all.

Can I use couple of rules xml files, or must I enter my own rules into
validator-rules.xml ?

In this example I'm trying to use validator-my-rules.xml which includes my
own validation.

  



--
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: my validator-rules.xml - is it possible ?

2002-11-27 Thread Dan Tran
So what was your mistake, what is solution?
Could your share?
-D
- Original Message -
From: "Arik Levin ( Tikal )" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 8:17 AM
Subject: RE: my validator-rules.xml - is it possible ?


> It's working... thanx anyway.
>
>
> -Original Message-
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 4:54 PM
> To: Struts Users Mailing List
> Subject: my validator-rules.xml - is it possible ?
>
> Hi all.
>
> Can I use couple of rules xml files, or must I enter my own rules into
> validator-rules.xml ?
>
> In this example I'm trying to use validator-my-rules.xml which includes my
> own validation.
>
>   
>  value="/WEB-INF/validator/validator-rules.xml,
>
> /WEB-INF/validator/validator-my-rules.xml"/>
>   
>
> --
> 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: my validator-rules.xml - is it possible ?

2002-11-27 Thread Arik Levin ( Tikal )
It's a known issue. 
Validator plugin does not correctly configure multiple validation files.
Getting the night build will do.

-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 27, 2002 6:31 PM
To: Struts Users Mailing List
Subject: Re: my validator-rules.xml - is it possible ?

So what was your mistake, what is solution?
Could your share?
-D
- Original Message -
From: "Arik Levin ( Tikal )" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 27, 2002 8:17 AM
Subject: RE: my validator-rules.xml - is it possible ?


> It's working... thanx anyway.
>
>
> -Original Message-
> From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 4:54 PM
> To: Struts Users Mailing List
> Subject: my validator-rules.xml - is it possible ?
>
> Hi all.
>
> Can I use couple of rules xml files, or must I enter my own rules into
> validator-rules.xml ?
>
> In this example I'm trying to use validator-my-rules.xml which includes my
> own validation.
>
>   
>  value="/WEB-INF/validator/validator-rules.xml,
>
> /WEB-INF/validator/validator-my-rules.xml"/>
>   
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>

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


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




validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" whenloading validator-rules.xml

2003-05-28 Thread ashwani . kalra
hi,

I get the following error when it my application boots up. Does it really
tries to  get to the jakarta.apache.org. I  think no?
Then what might be the problem ?



[INFO] ValidatorPlugIn - -Loading validation rules file from
'WEB-INF/validator-rules.xml'
[ERROR] ValidatorPlugIn - -jakarta.apache.org
java.net.UnknownHostException: jakarta.apache.org
 at java.net.InetAddress.getAllByName0(InetAddress.java:566)
 at java.net.InetAddress.getAllByName0(InetAddress.java:535)
 at java.net.InetAddress.getByName(InetAddress.java:444)
 at java.net.Socket.(Socket.java:95)
 at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
 at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
 at sun.net.www.http.HttpClient.(HttpClient.java:270)
 at sun.net.www.http.HttpClient.(HttpClient.java:280)
 at sun.net.www.http.HttpClient.New(HttpClient.java:292)
 at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:417)
 at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:510)
 at java.net.URL.openStream(URL.java:793)
 at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
 at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)
 at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)
 at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
 at org.apache.commons.digester.Digester.parse(Digester.java:1562)
 at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
 at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
 at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
 at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
 at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
 at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
 at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


TIA
Ashwani
http://www.gecities.com/ashwani_kalra/



This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination

Error with validator-rules.xml - No stream could be opened

2003-07-08 Thread sriram
I am trying to use validator with validator-rules.xml (for struts1.0). When I deploy 
the .ear file on JBoss, I'm getting the following error: 

10:07:15,247 INFO  [Engine] validator: Skipping validation rules file from '/WEB 
-INF/validator-rules.xml'.  No stream could be opened.

I tried removing lot of code in validator-rules.xml and finally to test it I've 
removed almost all the code. Here is the code contained in validator-rules.xml:


   
  

  
   


Still I'm getting the same error. Any idea how to get rid of this will be helpful to 
me.

Sriram


Re: validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" whenloading validator-rules.xml

2003-05-28 Thread ashwani . kalra

Thanks Nicolas
Is there any stable release of 1.1.  or Nightly build will be ok ? I am
learnigs strus as of now.

Please send the urls for any of them.







   
  
"Nicolas De
  
Loof"  To: "Struts Users Mailing List" <[EMAIL 
PROTECTED]>  
 Subject: Re: validator plugin gives 
  
   "java.net.UnknownHostException: 
jakarta.apache.org"  when loading 
        05/28/2003 validator-rules.xml 
  
01:50 PM   
  
Please respond 
  
to "Struts 
  
Users Mailing  
  
List"  
  
   
  
   
  





This is a known RC1 bug, use a nightly build that ionclud the needed DTD.

Nico.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:07 AM
Subject: validator plugin gives "java.net.UnknownHostException:
jakarta.apache.org" when loading validator-rules.xml


> hi,
>
> I get the following error when it my application boots up. Does it really
> tries to  get to the jakarta.apache.org. I  think no?
> Then what might be the problem ?
>
>
>
> [INFO] ValidatorPlugIn - -Loading validation rules file from
> 'WEB-INF/validator-rules.xml'
> [ERROR] ValidatorPlugIn - -jakarta.apache.org
>  jakarta.apache.org>java.net.UnknownHostException: jakarta.apache.org
>  at java.net.InetAddress.getAllByName0(InetAddress.java:566)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:535)
>  at java.net.InetAddress.getByName(InetAddress.java:444)
>  at java.net.Socket.(Socket.java:95)
>  at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
>  at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
>  at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
>  at sun.net.www.http.HttpClient.(HttpClient.java:270)
>  at sun.net.www.http.HttpClient.(HttpClient.java:280)
>  at sun.net.www.http.HttpClient.New(HttpClient.java:292)
>  at
>
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:417)

>  at
>
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:510)

>  at java.net.URL.openStream(URL.java:793)
>  at
>
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)

>  at
>
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)

>  at
>
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)

>  at
>
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)

>  at
>
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)

>  at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
>  at
>
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
>  at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>  at
>
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)

>  at org.apache.commons.digester.Digester.parse(Digester.java:1562)
>  at
>
org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)

>  at
>
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)

>  at
>
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
>  at
>
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)

>  at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
>  at javax.servlet.GenericServlet.init(GenericServlet.java:2

Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Yuan, Saul (TOR-ML)
Hi,

 

I have some problems validating multiple radio buttons and checkboxes,
selections on the client side. Tracking down to the javascript code
defined in validator-rules.xml, I found that the validateRequired(form)
function doesn't deal with multiple checkboxes, selections at all. For
multiples radios, checkboxes etc, the field.type = undefined. Can
somebody explain why is this?

 

Thanks,

Saul

 

 

Validator-rules.xml:

-

 

function validateRequired(form) {

var isValid = true;

var focusField = null;

var i = 0;

var fields = new Array();

oRequired = new required();

for (x in oRequired) {

var field = form[oRequired[x][0]];



if (field.type == 'text' ||

field.type == 'textarea' ||

field.type == 'file' ||

field.type == 'select-one' ||

field.type == 'radio' ||

field.type == 'password') {



var value = '';

 
// get field's value

 
if (field.type == "select-one") {

 
var si = field.selectedIndex;

 
if (si >= 0) {

 
value = field.options[si].value;

 
}

 
} else {

 
value = field.value;

 
}



if (trim(value).length == 0) {



if (i == 0) {

focusField = field;

}

fields[i++] = oRequired[x][1];

isValid = false;

}

}

}

if (fields.length > 0) {

   focusField.focus();

   alert(fields.join('\n'));

}

return isValid;

}



Re: validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" when loading validator-rules.xml

2003-05-28 Thread Nicolas De Loof
This is a known RC1 bug, use a nightly build that ionclud the needed DTD.

Nico.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 10:07 AM
Subject: validator plugin gives "java.net.UnknownHostException: jakarta.apache.org" 
when loading validator-rules.xml


> hi,
> 
> I get the following error when it my application boots up. Does it really
> tries to  get to the jakarta.apache.org. I  think no?
> Then what might be the problem ?
> 
> 
> 
> [INFO] ValidatorPlugIn - -Loading validation rules file from
> 'WEB-INF/validator-rules.xml'
> [ERROR] ValidatorPlugIn - -jakarta.apache.org
>  jakarta.apache.org>java.net.UnknownHostException: jakarta.apache.org
>  at java.net.InetAddress.getAllByName0(InetAddress.java:566)
>  at java.net.InetAddress.getAllByName0(InetAddress.java:535)
>  at java.net.InetAddress.getByName(InetAddress.java:444)
>  at java.net.Socket.(Socket.java:95)
>  at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
>  at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
>  at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
>  at sun.net.www.http.HttpClient.(HttpClient.java:270)
>  at sun.net.www.http.HttpClient.(HttpClient.java:280)
>  at sun.net.www.http.HttpClient.New(HttpClient.java:292)
>  at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:417)
>  at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:510)
>  at java.net.URL.openStream(URL.java:793)
>  at
> org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
>  at
> org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:756)
>  at
> org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:267)
>  at
> org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:826)
>  at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
>  at
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
>  at
> org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
>  at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>  at
> org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
>  at org.apache.commons.digester.Digester.parse(Digester.java:1562)
>  at
> org.apache.commons.validator.ValidatorResourcesInitializer.initialize(ValidatorResourcesInitializer.java:256)
>  at
> org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPlugIn.java:224)
>  at
> org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java:167)
>  at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
>  at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
>  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>  at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:924)
>  at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
>  at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3341)
>  at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
>  at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
>  at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>  at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>  at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:257)
>  at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
>  at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:569)
>  at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
>  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>  at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
>  at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>  at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>  at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>  at
> org.apache.catalina.core.StandardService.start(StandardService.

Re: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-11 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote:

Use the nightly build of struts, this was fixed on Sept 9.
Please let me know if it works for you.
-Rob

Hi,



I have some problems validating multiple radio buttons and checkboxes,
selections on the client side. Tracking down to the javascript code
defined in validator-rules.xml, I found that the validateRequired(form)
function doesn't deal with multiple checkboxes, selections at all. For
multiples radios, checkboxes etc, the field.type = undefined. Can
somebody explain why is this?


Thanks,

Saul





Validator-rules.xml:

-



   function validateRequired(form) {

   var isValid = true;

   var focusField = null;

   var i = 0;

   var fields = new Array();

   oRequired = new required();

   for (x in oRequired) {

   var field = form[oRequired[x][0]];

   

   if (field.type == 'text' ||

   field.type == 'textarea' ||

   field.type == 'file' ||

   field.type == 'select-one' ||

   field.type == 'radio' ||

   field.type == 'password') {

   

   var value = '';

// get field's value

if (field.type == "select-one") {

var si = field.selectedIndex;

if (si >= 0) {

value = field.options[si].value;

}

} else {

value = field.value;

}

   

   if (trim(value).length == 0) {

   

   if (i == 0) {

   focusField = field;

   }

   fields[i++] = oRequired[x][1];

   isValid = false;

   }

   }

   }

   if (fields.length > 0) {

  focusField.focus();

  alert(fields.join('\n'));

   }

   return isValid;

   }

 



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


RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Yuan, Saul (TOR-ML)
Rob,

Thanks for your response.

I ended up with changing the validator-rules.xml file myself to add
support for multiple radios, checkboxes and selections (just for the
validateRequired(form) function)

I checked the validator-rules.xml file in the latest nightly built (Sep
12), I noticed it added support for multiple radio buttons, but not yet
for multiples checkboxes and selections.


Thanks,
Saul



> 
> Use the nightly build of struts, this was fixed on Sept 9.
> Please let me know if it works for you.
> 
> -Rob
> 
> >Hi,
> >
> >
> >
> >I have some problems validating multiple radio buttons and
checkboxes,
> >selections on the client side. Tracking down to the javascript code
> >defined in validator-rules.xml, I found that the
validateRequired(form)
> >function doesn't deal with multiple checkboxes, selections at all.
For
> >multiples radios, checkboxes etc, the field.type = undefined. Can
> >somebody explain why is this?
> >
> >
> >
> >Thanks,
> >
> >Saul
> >
> >
> >
> >
> >
> >Validator-rules.xml:
> >
> >-
> >
> >
> >
> >function validateRequired(form) {
> >
> >var isValid = true;
> >
> >var focusField = null;
> >
> >var i = 0;
> >
> >var fields = new Array();
> >
> >oRequired = new required();
> >
> >for (x in oRequired) {
> >
> >var field = form[oRequired[x][0]];
> >
> >
> >
> >if (field.type == 'text' ||
> >
> >field.type == 'textarea' ||
> >
> >field.type == 'file' ||
> >
> >field.type == 'select-one' ||
> >
> >field.type == 'radio' ||
> >
> >field.type == 'password') {
> >
> >
> >
> >var value = '';
> >
> >
> >// get field's value
> >
> >
> >if (field.type == "select-one") {
> >
> >
> >var si = field.selectedIndex;
> >
> >
> >if (si >= 0) {
> >
> >
> >value = field.options[si].value;
> >
> >
> >}
> >
> >
> >} else {
> >
> >
> >value = field.value;
> >
> >
> >}
> >
> >
> >
> >if (trim(value).length == 0) {
> >
> >
> >
> >if (i == 0) {
> >
> >focusField = field;
> >
> >}
> >
> >fields[i++] = oRequired[x][1];
> >
> >isValid = false;
> >
> >}
> >
> >}
> >
> >}
> >
> >if (fields.length > 0) {
> >
> >   focusField.focus();
> >
> >   alert(fields.join('\n'));
> >
> >}
> >
> >return isValid;
> >
> >}
> >
> >
> >
> >
> 
> 
> 
> -
> 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-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-12 Thread Robert Leland
Yuan, Saul (TOR-ML) wrote:

Rob,

Thanks for your response.

I ended up with changing the validator-rules.xml file myself to add
support for multiple radios, checkboxes and selections (just for the
validateRequired(form) function)
 

If you would like to post a BugZilla report and provide a patch against 
the nightly,
that can be integarted into the validator code, that would be much 
appreciated !

-Rob

I checked the validator-rules.xml file in the latest nightly built (Sep
12), I noticed it added support for multiple radio buttons, but not yet
for multiples checkboxes and selections.
Thanks,
Saul


 

Use the nightly build of struts, this was fixed on Sept 9.
Please let me know if it works for you.
-Rob

   

Hi,



I have some problems validating multiple radio buttons and
 

checkboxes,
 

selections on the client side. Tracking down to the javascript code
defined in validator-rules.xml, I found that the
 

validateRequired(form)
 

function doesn't deal with multiple checkboxes, selections at all.
 

For
 

multiples radios, checkboxes etc, the field.type = undefined. Can
somebody explain why is this?


Thanks,

Saul





Validator-rules.xml:

-



  function validateRequired(form) {

  var isValid = true;

  var focusField = null;

  var i = 0;

  var fields = new Array();

  oRequired = new required();

  for (x in oRequired) {

  var field = form[oRequired[x][0]];



  if (field.type == 'text' ||

  field.type == 'textarea' ||

  field.type == 'file' ||

  field.type == 'select-one' ||

  field.type == 'radio' ||

  field.type == 'password') {



  var value = '';

// get field's value

if (field.type == "select-one") {

var si = field.selectedIndex;

if (si >= 0) {

value = field.options[si].value;

}

} else {

value = field.value;

}



  if (trim(value).length == 0) {



  if (i == 0) {

  focusField = field;

  }

  fields[i++] = oRequired[x][1];

  isValid = false;

  }

  }

  }

  if (fields.length > 0) {

 focusField.focus();

 alert(fields.join('\n'));

  }

  return isValid;

  }

 



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


RE: Validator-rules.xml -- required fields validation for multiples radios, checkboxes etc

2003-09-15 Thread Yuan, Saul (TOR-ML)
> 
> >Rob,
> >
> >Thanks for your response.
> >
> >I ended up with changing the validator-rules.xml file myself to add
> >support for multiple radios, checkboxes and selections (just for the
> >validateRequired(form) function)
> >
> >
> If you would like to post a BugZilla report and provide a patch
against
> the nightly,
> that can be integarted into the validator code, that would be much
> appreciated !

Sounds good, I'll do that soon.

Saul


> 
> -Rob
> 
> >I checked the validator-rules.xml file in the latest nightly built
(Sep
> >12), I noticed it added support for multiple radio buttons, but not
yet
> >for multiples checkboxes and selections.
> >
> >
> >Thanks,
> >Saul
> >
> >
> >
> >
> >
> >>Use the nightly build of struts, this was fixed on Sept 9.
> >>Please let me know if it works for you.
> >>
> >>-Rob
> >>
> >>
> >>
> >>>Hi,
> >>>
> >>>
> >>>
> >>>I have some problems validating multiple radio buttons and
> >>>
> >>>
> >checkboxes,
> >
> >
> >>>selections on the client side. Tracking down to the javascript code
> >>>defined in validator-rules.xml, I found that the
> >>>
> >>>
> >validateRequired(form)
> >
> >
> >>>function doesn't deal with multiple checkboxes, selections at all.
> >>>
> >>>
> >For
> >
> >
> >>>multiples radios, checkboxes etc, the field.type = undefined. Can
> >>>somebody explain why is this?
> >>>
> >>>
> >>>
> >>>Thanks,
> >>>
> >>>Saul
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>Validator-rules.xml:
> >>>
> >>>-
> >>>
> >>>
> >>>
> >>>   function validateRequired(form) {
> >>>
> >>>   var isValid = true;
> >>>
> >>>   var focusField = null;
> >>>
> >>>   var i = 0;
> >>>
> >>>   var fields = new Array();
> >>>
> >>>   oRequired = new required();
> >>>
> >>>   for (x in oRequired) {
> >>>
> >>>   var field = form[oRequired[x][0]];
> >>>
> >>>
> >>>
> >>>   if (field.type == 'text' ||
> >>>
> >>>   field.type == 'textarea' ||
> >>>
> >>>   field.type == 'file' ||
> >>>
> >>>   field.type == 'select-one' ||
> >>>
> >>>   field.type == 'radio' ||
> >>>
> >>>   field.type == 'password') {
> >>>
> >>>
> >>>
> >>>   var value = '';
> >>>
> >>>
> >>>// get field's value
> >>>
> >>>
> >>>if (field.type == "select-one") {
> >>>
> >>>
> >>>var si = field.selectedIndex;
> >>>
> >>>
> >>>if (si >= 0) {
> >>>
> >>>
> >>>value = field.options[si].value;
> >>>
> >>>
> >>>}
> >>>
> >>>
> >>>} else {
> >>>
> >>>
> >>>value = field.value;
> >>>
> >>>
> >>>}
> >>>
> >>>
> >>>
> >>>   if (trim(value).length == 0) {
> >>>
> >>>
> >>>
> >>>   if (i == 0) {
> >>>
> >>>   focusField = field;
> >>>
> >>>   }
> >>>
> >>>   fields[i++] = oRequired[x][1];
> >>>
> >>>   isValid = false;
> >>>
> >>>   }
> >>>
> >>>   }
> >>>
> >>>   }
> >>>
> >>>   if (fields.length > 0) {
> >>>
> >>>  focusField.focus();
> >>>
> >>>  alert(fields.join('\n'));
> >>>
> >>>   }
> >>>
> >>>   return isValid;
> >>>
> >>>   }
> >>>
> >>>
> >>>
> >>>
> 
> 
> 
> -
> 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]



[NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtdpr oblem?

2003-02-25 Thread Peterkofsky, Don
I am experiencing a problem with the parsing/validation of the
validator-rules.xml file; the error output from Tomcat is shown below.  It
appears that the remote DTD document specified in the validator-rules.xml
file is not being retrieved.  I have looked in the file, and it is indeed
specifying the correct (Commons 1.0) version of the dtd, based on what I've
read previously on this list.

I have seen a number of posts about this issue, with the implication that
the issue was resolved in 1.1b2; I have seen a bugzilla report that was
closed as "INVALID/FIXED".  However, I've just downloaded both rc1 and the
nightly build of 2003-02-25 and the problem exists in those builds.  What is
up with this, and where is there a clear explanation of how to address this?

Thanks.

---

[ERROR] ValidatorPlugIn - -Host unreachable: connect
java.net.NoRouteToHostException: Host
unreachab
le: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.(Socket.java:268)
at java.net.Socket.(Socket.java:95)
at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
at sun.net.www.http.HttpClient.(HttpClient.java:270)
at sun.net.www.http.HttpClient.(HttpClient.java:280)
at sun.net.www.http.HttpClient.New(HttpClient.java:292)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:417)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:510)
at java.net.URL.openStream(URL.java:793)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultRe
aderFactory.java:149)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
alEntity(DefaultEntityHandler.java:767)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
alSubset(DefaultEntityHandler.java:566)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann
er.java:1139)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc
umentScanner.java:2145)
at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc
anner.java:2100)
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:720)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize
(ValidatorResourcesInitializer.java:256)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
ugIn.java:224)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
:167)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:1105)





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



Re: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr oblem?

2003-02-25 Thread David Graham
I just unplugged my network cable and got similar results.

David



From: "Peterkofsky, Don" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr 
oblem?
Date: Tue, 25 Feb 2003 13:00:19 -0800

I am experiencing a problem with the parsing/validation of the
validator-rules.xml file; the error output from Tomcat is shown below.  It
appears that the remote DTD document specified in the validator-rules.xml
file is not being retrieved.  I have looked in the file, and it is indeed
specifying the correct (Commons 1.0) version of the dtd, based on what I've
read previously on this list.
I have seen a number of posts about this issue, with the implication that
the issue was resolved in 1.1b2; I have seen a bugzilla report that was
closed as "INVALID/FIXED".  However, I've just downloaded both rc1 and the
nightly build of 2003-02-25 and the problem exists in those builds.  What 
is
up with this, and where is there a clear explanation of how to address 
this?

Thanks.

---

[ERROR] ValidatorPlugIn - -Host unreachable: connect

ption: Host unreachable: connect>java.net.NoRouteToHostException: Host
unreachab
le: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.(Socket.java:268)
at java.net.Socket.(Socket.java:95)
at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
at sun.net.www.http.HttpClient.(HttpClient.java:270)
at sun.net.www.http.HttpClient.(HttpClient.java:280)
at sun.net.www.http.HttpClient.New(HttpClient.java:292)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:417)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:510)
at java.net.URL.openStream(URL.java:793)
at
org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultRe
aderFactory.java:149)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
alEntity(DefaultEntityHandler.java:767)
at
org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
alSubset(DefaultEntityHandler.java:566)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann
er.java:1139)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc
umentScanner.java:2145)
at
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc
anner.java:2100)
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:720)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.apache.commons.digester.Digester.parse(Digester.java:1562)
at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize
(ValidatorResourcesInitializer.java:256)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
ugIn.java:224)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
:167)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:1105)





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


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


RE: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr oblem?

2003-02-25 Thread James Mitchell
I just unplugged my power cord, but my results were a bit different.
Could it be related?


--
James "just kidding" Mitchell
Software Engineer/Struts Evangelist




> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 25, 2003 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [NOT FIXED] WHAT IS SOLUTION TO 
> VALIDATOR-RULES.XML remote dtd pr oblem?
> 
> 
> I just unplugged my network cable and got similar results.
> 
> David
> 
> 
> 
> >From: "Peterkofsky, Don" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'" 
> <[EMAIL PROTECTED]>
> >Subject: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML 
> remote dtd pr 
> >oblem?
> >Date: Tue, 25 Feb 2003 13:00:19 -0800
> >
> >I am experiencing a problem with the parsing/validation of the
> >validator-rules.xml file; the error output from Tomcat is 
> shown below.  It
> >appears that the remote DTD document specified in the 
> validator-rules.xml
> >file is not being retrieved.  I have looked in the file, and 
> it is indeed
> >specifying the correct (Commons 1.0) version of the dtd, 
> based on what I've
> >read previously on this list.
> >
> >I have seen a number of posts about this issue, with the 
> implication that
> >the issue was resolved in 1.1b2; I have seen a bugzilla 
> report that was
> >closed as "INVALID/FIXED".  However, I've just downloaded 
> both rc1 and the
> >nightly build of 2003-02-25 and the problem exists in those 
> builds.  What 
> >is
> >up with this, and where is there a clear explanation of how 
> to address 
> >this?
> >
> >Thanks.
> >
> >---
> >
> >[ERROR] ValidatorPlugIn - -Host unreachable: connect
> > >ption: Host unreachable: 
> connect>java.net.NoRouteToHostException: Host
> >unreachab
> >le: connect
> > at java.net.PlainSocketImpl.socketConnect(Native Method)
> > at 
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
> > at
> >java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
> > at 
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
> > at java.net.Socket.(Socket.java:268)
> > at java.net.Socket.(Socket.java:95)
> > at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
> > at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
> > at 
> sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
> > at sun.net.www.http.HttpClient.(HttpClient.java:270)
> > at sun.net.www.http.HttpClient.(HttpClient.java:280)
> > at sun.net.www.http.HttpClient.New(HttpClient.java:292)
> > at
> >sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
> >.java:417)
> > at
> >sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> >nection.java:510)
> > at java.net.URL.openStream(URL.java:793)
> > at
> >org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultRe
> >aderFactory.java:149)
> > at
> >org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
> >alEntity(DefaultEntityHandler.java:767)
> > at
> >org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
> >alSubset(DefaultEntityHandler.java:566)
> > at
> >org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann
> >er.java:1139)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc
> >umentScanner.java:2145)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc
> >anner.java:2100)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
> >atch(XMLDocumentScanner.java:720)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> >canner.java:381)
> > at 
> >org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> > at 
> org.apache.commons.digester.Digester.parse(Digester.java:1562)
> > at
> >org.apache.commons.validator.ValidatorResourcesInitializer.initialize
> >(ValidatorResourcesInitializer.java:256)
> > at
> >org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
> >ugIn.java:224)
> > at
> >o

RE: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr oblem?

2003-02-25 Thread David Graham
So did it work?

Dave

I just unplugged my power cord, but my results were a bit different.
Could it be related?
--
James "just kidding" Mitchell
Software Engineer/Struts Evangelist


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 5:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [NOT FIXED] WHAT IS SOLUTION TO
> VALIDATOR-RULES.XML remote dtd pr oblem?
>
>
> I just unplugged my network cable and got similar results.
>
> David
>
>
>
> >From: "Peterkofsky, Don" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> >Subject: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML
> remote dtd pr
> >oblem?
> >Date: Tue, 25 Feb 2003 13:00:19 -0800
> >
> >I am experiencing a problem with the parsing/validation of the
> >validator-rules.xml file; the error output from Tomcat is
> shown below.  It
> >appears that the remote DTD document specified in the
> validator-rules.xml
> >file is not being retrieved.  I have looked in the file, and
> it is indeed
> >specifying the correct (Commons 1.0) version of the dtd,
> based on what I've
> >read previously on this list.
> >
> >I have seen a number of posts about this issue, with the
> implication that
> >the issue was resolved in 1.1b2; I have seen a bugzilla
> report that was
> >closed as "INVALID/FIXED".  However, I've just downloaded
> both rc1 and the
> >nightly build of 2003-02-25 and the problem exists in those
> builds.  What
> >is
> >up with this, and where is there a clear explanation of how
> to address
> >this?
> >
> >Thanks.
> >
> >---
> >
> >[ERROR] ValidatorPlugIn - -Host unreachable: connect
> > >ption: Host unreachable:
> connect>java.net.NoRouteToHostException: Host
> >unreachab
> >le: connect
> > at java.net.PlainSocketImpl.socketConnect(Native Method)
> > at
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
> > at
> >java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
> > at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
> > at java.net.Socket.(Socket.java:268)
> > at java.net.Socket.(Socket.java:95)
> > at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
> > at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:334)
> > at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:520)
> > at sun.net.www.http.HttpClient.(HttpClient.java:270)
> > at sun.net.www.http.HttpClient.(HttpClient.java:280)
> > at sun.net.www.http.HttpClient.New(HttpClient.java:292)
> > at
> >sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
> >.java:417)
> > at
> >sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
> >nection.java:510)
> > at java.net.URL.openStream(URL.java:793)
> > at
> >org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultRe
> >aderFactory.java:149)
> > at
> >org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
> >alEntity(DefaultEntityHandler.java:767)
> > at
> >org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern
> >alSubset(DefaultEntityHandler.java:566)
> > at
> >org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScann
> >er.java:1139)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDoc
> >umentScanner.java:2145)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentSc
> >anner.java:2100)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
> >atch(XMLDocumentScanner.java:720)
> > at
> >org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
> >canner.java:381)
> > at
> >org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> > at
> org.apache.commons.digester.Digester.parse(Digester.java:1562)
> > at
> >org.apache.commons.validator.ValidatorResourcesInitializer.initialize
> >(ValidatorResourcesInitializer.java:256)
> > at
> >org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
> >ugIn.java:224)
> > at
> >org.apache.

RE: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr oblem?

2003-02-25 Thread James Mitchell
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 25, 2003 5:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [NOT FIXED] WHAT IS SOLUTION TO 
> VALIDATOR-RULES.XML remote dtd pr oblem?
> 
> 
> So did it work?

It worked as expected.  The DTD could not be found.in fact, nothing
was found ;)

> 
> Dave
> 
> >I just unplugged my power cord, but my results were a bit different.
> >Could it be related?
> >
> >
> >--
> >James "just kidding" Mitchell
  



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



RE: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd pr oblem?

2003-02-25 Thread Brandon Goodin
turn off validation. :-)

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
 

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:45 PM
To: 'Struts Users Mailing List'
Subject: RE: [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote
dtd pr oblem?


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 25, 2003 5:35 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [NOT FIXED] WHAT IS SOLUTION TO 
> VALIDATOR-RULES.XML remote dtd pr oblem?
> 
> 
> So did it work?

It worked as expected.  The DTD could not be found.in fact, nothing
was found ;)

> 
> Dave
> 
> >I just unplugged my power cord, but my results were a bit different.
> >Could it be related?
> >
> >
> >--
> >James "just kidding" Mitchell
  



-
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: Can not run my application since update with Struts1.1 Releas e Candidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR- RULES.XML remote dtd problem?

2003-02-26 Thread SWICKLUND

This does not resolve the overall issue... Why is the DTD, which is stored
in the commons-validator.jar not being recognized in RC1?  The lookup
should recognize the DTD in the path and not even require a remote lookup.


|-+--->
| |   "Raible, Matt"  |
| |   <[EMAIL PROTECTED]|
| |   omcast.com> |
| |   |
| |   02/26/03 11:35 AM   |
| |   Please respond to   |
| |   "Struts Users   |
| |   Mailing List"   |
| |   |
|-+--->
  
>-|
  |
 |
  |   To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>  
|
  |   cc:  
 |
  |   Subject:  RE: Can not run my application since update with Struts1.1 Releas 
e C andidate 1 --     |
  |    duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR - RULES.XML remote 
dtd problem?   |
  
>-|




If you can get to the DTD with your browser, and you're behind a firewall,
you may have to add your proxy information to Tomcat.  To do this, create a
CATALINA_OPTS environment variable, and add something like the following:

-Dhttp.proxyHost=myproxy -Dhttp.proxyPort=85

> -Original Message-
> From: Peterkofsky, Don [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 10:25 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Can not run my application since update with Struts1.1
> Releas e C andidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TO
> VALIDATOR- RULES.XML remote dtd problem?
>
>
>
> This is the same issue I am reporting in my post titled
>   [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote
> dtd problem?
>
> See post below.
>
> -Original Message-
> From: Heligon Sandra [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 12:24 AM
> To: '[EMAIL PROTECTED]'
> Subject: Can not run my application since update with
> Struts1.1 Release
> C andidate 1
> Importance: High
>
>
>
> Since I updated the new version of the Struts framework
> I have the
> following errors:
>
> - Problem with the Validator Plugin
>
> [INFO] ValidatorPlugIn - -Loading validation rules file from
> '/WEB-INF/validator-rules.xml'
> [ERROR] ValidatorPlugIn - -Operation timed out: connect
>  connect>java.net.ConnectException:  Operation timed out: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
>
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
> at java.net.Socket.(Socket.java:273)
> at java.net.Socket.(Socket.java:100)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
> at sun.net.www.http.HttpClient.(HttpClient.java:267)
> at
> sun.net.www.http.HttpClient.(HttpClient.java:277)   at
> (Bootstrap.java:243)
>
> I don't understand what is the problem ?
>
> - I have a Login page and when I select the Login button I must
> enter in the LoginAction, but
> it dosen't work no more .
>
> [ERROR] RequestProcessor -
> -No action instance for path /login could be created
>  xms.clients.web.security.actions.LoginAction>
> java.lang.ClassCastException:
> xms.clients.web.security.actions.LoginAction
>
> at
> org.apache.struts.action.RequestProcessor.processActionCreate(
> RequestProcess
> or.java:324)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:268)
>
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1420)
>
> I have the following entry in my struts-config.xml file
>  processorClass="org.apache.struts.tiles.TilesRequestProcessor" />
>
> and my class LoginAction extends a BaseAction class
> that extends the
> Struts Action class.
> I don't understand why it d