XML parse and filter expression
Hi - I am using the jstl xml tags to list out my company's press releases on our web site. The XML file I created lists 50 PRs and the JSP page imports that XML file and then displays each one using the x:forEach tag. The trouble I'm having is that I have another JSP page I need to create that should display only the first three PRs from that XML file. I see that x:forEach does not support the begin and end parameters. This leads me to think I need to limit the number of records from the XML document I'm importing rather than import them all then limit the number I display. So my guess is that I need to write a filter expression in the x:parse tag to retrieve just the first three records. Am I on the right track? And, if so, any ideas on how to write this filter? Thanks, Dylan MacDonald Senior Web Designer GNX phone: 415-283-3715 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taglibs-1.1 source
Hello, Is there a way to get the source for a specific taglibs release, rather than just a nightly source distribution? Thanks. Zach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XML parse and filter expression
Actually, it sounds like you just need a little XPath magic in the x:forEach to limit it to the first three PRs. x:forEach select=$doc/root/child[position()4] ... /x:forEach Quoting Dylan MacDonald [EMAIL PROTECTED]: Hi - I am using the jstl xml tags to list out my company's press releases on our web site. The XML file I created lists 50 PRs and the JSP page imports that XML file and then displays each one using the x:forEach tag. The trouble I'm having is that I have another JSP page I need to create that should display only the first three PRs from that XML file. I see that x:forEach does not support the begin and end parameters. This leads me to think I need to limit the number of records from the XML document I'm importing rather than import them all then limit the number I display. So my guess is that I need to write a filter expression in the x:parse tag to retrieve just the first three records. Am I on the right track? And, if so, any ideas on how to write this filter? Thanks, Dylan MacDonald Senior Web Designer GNX phone: 415-283-3715 -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML parse and filter expression
Perfect! Thank you SO much! - Dylan -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:36 AM To: Tag Libraries Users List; [EMAIL PROTECTED] Subject: Re: XML parse and filter expression Actually, it sounds like you just need a little XPath magic in the x:forEach to limit it to the first three PRs. x:forEach select=$doc/root/child[position()4] ... /x:forEach Quoting Dylan MacDonald [EMAIL PROTECTED]: Hi - I am using the jstl xml tags to list out my company's press releases on our web site. The XML file I created lists 50 PRs and the JSP page imports that XML file and then displays each one using the x:forEach tag. The trouble I'm having is that I have another JSP page I need to create that should display only the first three PRs from that XML file. I see that x:forEach does not support the begin and end parameters. This leads me to think I need to limit the number of records from the XML document I'm importing rather than import them all then limit the number I display. So my guess is that I need to write a filter expression in the x:parse tag to retrieve just the first three records. Am I on the right track? And, if so, any ideas on how to write this filter? Thanks, Dylan MacDonald Senior Web Designer GNX phone: 415-283-3715 -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XML parse and filter expression
Glad it helped, good luck... Quoting Dylan MacDonald [EMAIL PROTECTED]: Perfect! Thank you SO much! - Dylan -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 10:36 AM To: Tag Libraries Users List; [EMAIL PROTECTED] Subject: Re: XML parse and filter expression Actually, it sounds like you just need a little XPath magic in the x:forEach to limit it to the first three PRs. x:forEach select=$doc/root/child[position()4] ... /x:forEach Quoting Dylan MacDonald [EMAIL PROTECTED]: Hi - I am using the jstl xml tags to list out my company's press releases on our web site. The XML file I created lists 50 PRs and the JSP page imports that XML file and then displays each one using the x:forEach tag. The trouble I'm having is that I have another JSP page I need to create that should display only the first three PRs from that XML file. I see that x:forEach does not support the begin and end parameters. This leads me to think I need to limit the number of records from the XML document I'm importing rather than import them all then limit the number I display. So my guess is that I need to write a filter expression in the x:parse tag to retrieve just the first three records. Am I on the right track? And, if so, any ideas on how to write this filter? Thanks, Dylan MacDonald Senior Web Designer GNX phone: 415-283-3715 -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taglibs-1.1 source
You could check out jakarta-taglibs from CVS then update or co the branch for the version of the taglib you want. Glenn On Mon, Mar 22, 2004 at 01:24:10PM -0500, Zachary Hartley wrote: Hello, Is there a way to get the source for a specific taglibs release, rather than just a nightly source distribution? Thanks. Zach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Glenn Nielsen [EMAIL PROTECTED] | /* Spelin donut madder| MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]