Re: [JBoss-user] Declaring finders: problem and work-around

2002-04-18 Thread Shunsuke Masuda

Another workaound would be 


- Original Message - 
From: "Richard Kasperowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 17, 2002 10:35 AM
Subject: [JBoss-user] Declaring finders: problem and work-around


> This page tells us how to declare custom finders:
> 
>   <http://www.jboss.org/online-manual/HTML/ch06s07.html>
> 
> The examples use the > and < operators, e.g.:
> 
>   studentCount > {0} AND teacherName = {1}
> 
> I tried something similar in my custom finder, using <= and >=, e.g.:
> 
>   rideDate <= {0} and rideDate >= {1}
> 
> If you try this in your "jaws.xml", you'll see an error message like 
> this when you deploy your application:
> 
> [WARN,XmlFileLoader] msg=The content beginning "<=" is not legal markup. 
> Perhaps the "=" (d;) character should be a letter., col=-1, line=56
> org.xml.sax.SAXParseException: The content beginning "<=" is not legal 
> markup. Perhaps the "=" (d;) character should be a letter.
> 
> The work-around: Escape the < and > with < and >, e.g.:
> 
>rideDate <= {0} and rideDate >= {1}
> 
> -- 
> Richard Kasperowski (mailto:[EMAIL PROTECTED])
> Tel: 617-576-1552, Fax: 617-576-2441
> http://www.altisimo.com/
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Declaring finders: problem and work-around

2002-04-16 Thread Richard Kasperowski

This page tells us how to declare custom finders:

  

The examples use the > and < operators, e.g.:

  studentCount > {0} AND teacherName = {1}

I tried something similar in my custom finder, using <= and >=, e.g.:

  rideDate <= {0} and rideDate >= {1}

If you try this in your "jaws.xml", you'll see an error message like 
this when you deploy your application:

[WARN,XmlFileLoader] msg=The content beginning "<=" is not legal markup. 
Perhaps the "=" (d;) character should be a letter., col=-1, line=56
org.xml.sax.SAXParseException: The content beginning "<=" is not legal 
markup. Perhaps the "=" (d;) character should be a letter.

The work-around: Escape the < and > with < and >, e.g.:

   rideDate <= {0} and rideDate >= {1}

-- 
Richard Kasperowski (mailto:[EMAIL PROTECTED])
Tel: 617-576-1552, Fax: 617-576-2441
http://www.altisimo.com/


___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user