Hi, Jeroen. That's also the way I'd do it. However with XQuery you can combine the query part and the formatting (to HTML) in one step. Information and samples can be found here: http://tamino.demozone.softwareag.com/demoXQuery/XQueryDemo/reference.jsp Creating a tag that executes the query and places the result in the outputstream should not be a big deal.
Hiran ----------------------------------------- Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 > -----Original Message----- > From: Jeroen Breedveld [mailto:[EMAIL PROTECTED] > Sent: Freitag, 8. Oktober 2004 15:47 > To: 'Struts Users Mailing List' > Subject: RE: Struts - XML - XSL - Xquery > > Hi Yoni, > > || -----Original Message----- > || From: [EMAIL PROTECTED] > || [mailto:[EMAIL PROTECTED] > || Sent: vrijdag 8 oktober 2004 16:13 > || To: [EMAIL PROTECTED] > || Subject: RE: Struts - XML - XSL - Xquery || || || Hi, > || || in fact, I already know about XML and XSL syntaxes and > not || about XQuery || || But what interests me now are > examples/sources/... with || struts and XQUERY.... (no many > examples on the web...) > > I think the combination of Struts and XQuery doesn't have any > special advantage to offer you other than their respective advantages. > XQuery integrates nicely however with JSP if, for example, > you write a custom tag that queries the XML database. The > result could be transformed in the JSP using XSLT to produce > html of you can have XQuery generate html directly. > > I our company we use JSP documents (JSP pages with XML > syntax) that collect their data from an XML database using > XQuery. The XML result goes through an Servlet Filter to > generate html. But you also validate the result using some > schema technology. Endless possiblities here using XML XSLT and JSP. > > So for more information about XQuery I think the best > starting point would be www.w3.org, you will not find > specific examples of using XQuery with Struts > > regards, > > Jeroen Breedveld > > -- > > X-Hive Corporation > e-mail: [EMAIL PROTECTED] > phone: +31 10 2818080 > http://www.x-hive.com > > > > --------------------------------------------------------------------- > 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]