Gunter,
Yes and no. I was not successful in moving JRUN's jar file to weblogic.
But I suspect that was because I had to create my own *.tld file for JRUN's
jar file, since JRUN references their jar file within the JRUN console,
instead of using a *.tld file and referencing the uri in the web.xml file
for the server, as the standard dictates. I have used other tag libraries
across different server platforms. For example, I have used some of Orions
tag libraries in JRUN when a client wanted a specific functionality that was
in the Orion tag library. Theoretically, a tag library should work for any
server that follows whatever Sun Servlet Standard that tag library was
developed for/under. I believe the Jarkarta tag libraries work in all JSP
server environments, and I know they are designed to be portable. I have
used some of the Jarkarta tag libraries in JRUN, and sometimes prefer the
Jarkarta tag libraries to JRUN's since the code is open source. Basically,
a tag library is nothing but a servlet (and sometime Java class) code
library wrapped into a .jar file, coupled with an XML .tld file. You can
use an external tag library by reference it's uri and jar file within your
web.xml file for your JSP server. Go to the Jarkarta project web site, they
have a very good explanation of how to incorporate/use tag libraries under
any compliant Sun Servlet web server.
By the way, I believe that JRUN is now a partner in the Jarkarta project,
for developing a portable tag library that can be used under any Sun Servlet
Standard compliant server. Does anyone from Macromedia have a comment on
this?
Celeste
-----Original Message-----
From: Gunter Sammet [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 02, 2001 10:14 AM
To: JRun-Talk
Subject: RE: Applying Xsl --> additional question
When I first started out with JSP/Servlets, one thing I really liked was the
statement:
Write once, run on every web-server (which supports JSP/Servlets).
What happens when you use those libraries? Can you still move it from one
web-server to another? Or do I have to rewrite the code in order to move it
to another platform?
Date: Wed, 01 Aug 2001 15:50:01 -0500
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
Subject: RE: Applying Xsl
Message-ID: <[EMAIL PROTECTED]>
Use the built in tag library, if you are using version 3.01 or greater.
An example:
TESTXML.JSP:
<html>
<head>
<title>xslt Tag Example</title>
</head>
<body>
<!--Get data from database to convert to XML file-->
<jrun:sql datasrc="NYTC" id="rs1">
SELECT StockType.StockAmt, StockType.StockTypeDesc,
StockDetails.MICR1, StockType.Image2URL
FROM StockDetails INNER JOIN
StockType ON
StockDetails.StockID = StockType.StockTypeID
WHERE (StockDetails.StockID = 1)
</jrun:sql>
<jrun:param id ="rs1" type="QueryTable"/>
<jrun:xslt xsl="TestXMLPrint.xsl">
<jrun:query2xml query="rs1" type="DOM" scope="session"/>
</jrun:xslt>
</body>
</html>
TESTXMLPRINT.XSL:
<xsl:stylesheet id="style1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd">
<xsl:output method="html" media-type="image/svg"/>
<xsl:template match="table">
<table border="0" width="600">
<tr><th>StockAmt</th><th>StockTypeDesc</th><th>MICR1</th><th>ImageURL</th></
tr>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="row">
<tr><xsl:apply-templates/></tr>
</xsl:template>
<xsl:template match="StockAmt">
<td><xsl:apply-templates/></td>
</xsl:template>
<xsl:template match="StockTypeDesc">
<td><xsl:apply-templates/></td>
</xsl:template>
<xsl:template match="MICR1">
<td><font face="MICRe13b"
size="5"><xsl:apply-templates/></font></td>
</xsl:template>
<xsl:template match="Image2URL">
<td><img src="../images/MBUTTONdark.gif" width="38"/></td>
</xsl:template>
</xsl:stylesheet>
If you decide NOT to use the tag library, you will need to write out the XML
data from the recordset. That gets a little more complicated, but JRUN's
<jrun:xslt> tag allows you to specify an XML file to bind the XSLT to. See
the JRUN tag library documentation (separate Adobe download) on JRUN's web
site.
Hope this helps!!!
Celeste
-----Original Message-----
From: Bert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 2:45 PM
To: JRun-Talk
Subject: Applying Xsl
What is the Best way to apply a Xslt transformation style sheet in a Jsp
page via Jrun?
Bert
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists