Validator error what does this mean?

2007-01-02 Thread Hehl, Thomas
Hey!

I'm still pretty new to struts and am taking over an app from a previous
developer. I have added some validation and got the following error:

ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected token: )


Here is the code from Validator-defaults.xml

form name=DisqualForm   
field property=email depends=required, email
arg0 key=eJuror.global.label.from/
/field
field property=additionalInfo depends=validwhen
  arg0 key=ejuror.global.label.additionalInfo/
var
  var-nametest/var-name
  var-value((remarksRequired) or (*this* != null))/var-value
/var
/field
/form

And DisqualForm (Aliased):

/*
 * Author   :   Vincent Fumo
 * Created  :   Apr 25, 2005
 * Modified :   
 * 
 * Copyright (c) ACS Government Systems, Inc. 2005.  All rights reserved.
 * 
 * CONFIDENTIAL BUSINESS INFORMATION
 * 
 * THIS PROGRAM IS PROPRIETARY INFORMATION OF
 * ACS GOVERNMENT SYSTEMS AND IS NOT TO BE COPIED,
 * REPRODUCED, LENT OR DISPOSED OF, NOR USED FOR
 * ANY PURPOSE OTHER THAN THAT FOR WHICH IT IS
 * SPECIFICALLY PROVIDED WITHOUT THE WRITTEN
 * PERMISSION OF ACS.
 */

package com.acs.gs.eJuror.web.forms;

import java.util.Collection;
import java.util.List;

import com.acs.gs.juror.bo.ExcuseCode;

/**
 * @author Vincent Fumo
 * @version 2.1
 */
public class ExDisForm extends AbstractEJValidatorForm {

/**
 * Comment for codeserialVersionUID/code
 */
private static final long serialVersionUID = 1L;
private String email;
private String additionalInfo;

// the list of possible reasons
private ListExcuseCode reasons;

// the selected reason
private String errorMessage=;
private String reason;

public void setReasons(ListExcuseCode reasons) {
this.reasons = reasons;
}

public boolean isRemarksRequired(){
if(reason==null||reason.equals()){
return false;
}

for(ExcuseCode exCode:reasons){
if(reason.equals(exCode.getCode())){
return exCode.isRemarksRequired();
}
}

return false;
}

/**
 * @return Returns the additionalInfo.
 */
public String getAdditionalInfo() {
return additionalInfo;
}
/**
 * @param additionalInfo The additionalInfo to set.
 */
public void setAdditionalInfo(String additionalInfo) {
this.additionalInfo = additionalInfo;
}
/**
 * @return Returns the email.
 */
public String getEmail() {
return email;
}
/**
 * @param email The email to set.
 */
public void setEmail(String email) {
this.email = email;
}
/**
 * @return Returns the reason.
 */
public String getReason() {
return reason;
}
/**
 * @param reason The reason to set.
 */
public void setReason(String reason) {
this.reason = reason;
}
/**
 * @return Returns the reasons.
 */
public Collection getReasons() {
return reasons;
}

/**
 * @return the errorMessage
 */
public String getErrorMessage() {
return errorMessage;
}

/**
 * @param errorMessage the errorMessage to set
 */
public void setErrorMessage(String errorMessage) {
if(errorMessage==null){
this.errorMessage = ;
}
else{
this.errorMessage = errorMessage;
}
}
}

Any ideas?

thanks


Thom Hehl
Software Engineer, Juror Solutions
* Office (859) 277-8800 x 144
* [EMAIL PROTECTED]

ACS, Inc.
Government Solutions
1733 Harrodsburg Road
Lexington, KY 40504-3617

This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential and privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message and
notify sender via e-mail at [EMAIL PROTECTED] or by telephone at
859-277-8800 ext. 144.  Thank you.




Re: Validator error what does this mean?

2007-01-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thomas,

Hehl, Thomas wrote:
 I'm still pretty new to struts and am taking over an app from a previous
 developer. I have added some validation and got the following error:
 
 ValidWhen Error for field ' additionalInfo' - line 1:18: unexpected token: )
 
 Here is the code from Validator-defaults.xml
 
 form name=DisqualForm 
   field property=email depends=required, email
   arg0 key=eJuror.global.label.from/
   /field
   field property=additionalInfo depends=validwhen
   arg0 key=ejuror.global.label.additionalInfo/
 var
   var-nametest/var-name
   var-value((remarksRequired) or (*this* != null))/var-value
 /var
 /field
 /form

The expression language for validwhen tests is very limited. The
sub-expression (remarksRequired) is invalid because there is no
comparison. I assume that you want something like this:

((remarksRequired == 'true') or (*this* != null))

If you want to compare remarksRequired to a specific value, you should
do so as indicated above. If you only want to test for it's existence,
then you can use remarksRequired != null.

Hope that helps,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFFms2m9CaO5/Lv0PARAv9DAJd41+fXz/F4Srg03s4Ru96eowesAKCBMbsH
DoErYaqB+xSlzbg44uObHA==
=fa3V
-END PGP SIGNATURE-

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



What does it mean?

2005-06-05 Thread lk

Hi,

I got the following error:

Exception initializing TldLocationsCache: XML parsing error on file
/WEB-INF/tlds/sql.tld: (line 3, col 8): Document is invalid: no grammar
found.

I'm using MyEclipseIde 3.8.4 on Eclipse 3.0.2 (linux).

I get that exception many times during the running of my application and
I cannot understand what does it mean.

I don't use this tag in my application but the sql.tld is in the correct 
directory.


Thanks for any advise!

LuKe





--

Email.it, the professional e-mail, gratis per te: http://www.email.it/f



Sponsor:

Solo 10 Euro per chiamare in tutto il mondo!! Scopri il vantaggio di Email 
Phone Card,clicca subito

Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2685d=5-6

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



Re: What does it mean?

2005-06-05 Thread Adam Hardy

It means you're on the wrong mailing list ;)

Taking a wild guess, I'd say you have a problem with the tag library 
definitions for JSTL (tld's). Depending on what version of tomcat (or 
rather, what servlet spec), you may have to put entries in your web.xml. 
Or you may be having problems accessing the net (in some situations a 
web server will fetch xml DTDs and schemas from the net).


Try mailing list archives for your webserver, or for JSTL / 
jakarta-taglibs, or even eclipse.


Adam

On 05/06/05 18:09nbsp;lk wrote:

Hi,

I got the following error:

Exception initializing TldLocationsCache: XML parsing error on file
/WEB-INF/tlds/sql.tld: (line 3, col 8): Document is invalid: no grammar
found.

I'm using MyEclipseIde 3.8.4 on Eclipse 3.0.2 (linux).

I get that exception many times during the running of my application and
I cannot understand what does it mean.

I don't use this tag in my application but the sql.tld is in the correct 
directory.


Thanks for any advise!

LuKe



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



Re: What does it mean?

2005-06-05 Thread Martin Gainty

Andy-

More than likely the DTD you are using is messed up (in your web.xml) try
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
 http://java.sun.com/dtd/web-app_2_2.dtd;
feel free to email offline as this is decidedly 'off-topic'
(altho its sunday and most folks arent working we should still be respectful 
of being on topic)


HTH-
Martin

- Original Message - 
From: Adam Hardy [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, June 05, 2005 3:40 PM
Subject: Re: What does it mean?



It means you're on the wrong mailing list ;)

Taking a wild guess, I'd say you have a problem with the tag library 
definitions for JSTL (tld's). Depending on what version of tomcat (or 
rather, what servlet spec), you may have to put entries in your web.xml. 
Or you may be having problems accessing the net (in some situations a web 
server will fetch xml DTDs and schemas from the net).


Try mailing list archives for your webserver, or for JSTL / 
jakarta-taglibs, or even eclipse.


Adam

On 05/06/05 18:09nbsp;lk wrote:

Hi,

I got the following error:

Exception initializing TldLocationsCache: XML parsing error on file
/WEB-INF/tlds/sql.tld: (line 3, col 8): Document is invalid: no grammar
found.

I'm using MyEclipseIde 3.8.4 on Eclipse 3.0.2 (linux).

I get that exception many times during the running of my application and
I cannot understand what does it mean.

I don't use this tag in my application but the sql.tld is in the correct 
directory.


Thanks for any advise!

LuKe



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



[OT-humor] What does GA mean?

2004-08-26 Thread Bill Siggelkow
Giant Aardvark (duh!)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT-humor] What does GA mean?

2004-08-26 Thread Erik Weber
When Friday graciously arrives, I have no doubt there will be 
gamesmanship aplenty around here, with so many gifted aficionados of 
mail-list wordplay. But I'm hoping to get away with a few gratuitous 
acrostics of my own; I ain't generally afeard o' even the foremost 
glossal athlete.

Erik
Emmanouil Batsis wrote:
Bill Siggelkow wrote:
Giant Aardvark (duh!)

Hey it's not friday yet. Go Away ;-)
-
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]