Another workaound would be 
<query><![CDATA[studentCount > {0} AND teacherName = {1}]]></query>

----- 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.:
> 
>   <query>studentCount > {0} AND teacherName = {1}</query>
> 
> I tried something similar in my custom finder, using <= and >=, e.g.:
> 
>   <query>rideDate <= {0} and rideDate >= {1}</query>
> 
> 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 "=" (&#3d;) character should be a letter., col=-1, line=56
> org.xml.sax.SAXParseException: The content beginning "<=" is not legal 
> markup. Perhaps the "=" (&#3d;) character should be a letter.
> 
> The work-around: Escape the < and > with &lt; and &gt;, e.g.:
> 
>    <query>rideDate &lt;= {0} and rideDate &gt;= {1}</query>
> 
> -- 
> 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

Reply via email to