struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject redirecting XML/XSLT to JSP or Vice Versa
Date Wed, 14 Apr 2004 06:14:22 GMT
In the application I am working with data is in the form of XML for some screens .But since
the architecture uses beans and jsp.I was wondering how to integrate JSP/Struts Architecture
with XSLT/XML.
My requirement is either transform the xsl template to JSP or vice versa.
is this possible??
also I was planning to use the <jsp:include> tag eg <jsp:include page=""
This would give a transformed page.
is this ok?? 
Now when i started doing the basic transformation on an xsl derived from a JSP PAge came across
an error 
"The prefix "bean" for element "bean:message" is not bound."
can this be resolved.

The XSL is as follows

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl=""
    xmlns:xalan="" >
    <xsl:output method="html"/>
<xsl:template match="/">

<tr valign="bottom">
<td style="width: 145 px;"><span class="labelitem">
<bean:message key="label.views"/></span><br/>
<td valign="top" style="width: 85 px; padding-left: 2 px;"><span class="labelitem">
<bean:message key="label.dateRated"/>
</span><br/> <span class="normalitem"><xsl:value-of select="/DATA/DATE"/></span></td>
	<td valign="top" style="width: 216 px;"><span class="labelitem"><bean:message
    <span class="normalitem"><xsl:value-of select="/DATA/COMPANY"/></span></td>
	<td valign="top" style="width: 126 px;"><span class="labelitem"><bean:message
    <span class="normalitem"><xsl:value-of select="/DATA/USER"/></span></td>
	<td valign="top" style="width: 146 px;"><span class="labelitem"><bean:message
    <span class="normalitem"><xsl:value-of select="/DATA/NUMBER"/></span></td>




"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited,
unless specifically indicated to that effect. Mastek Limited does not accept any responsibility
or liability for it. This e-mail and attachments (if any) transmitted with it are confidential
and/or privileged and solely for the use of the intended person or entity to which it is addressed.
Any review, re-transmission, dissemination or other use of or taking of any action in reliance
upon this information by persons or entities other than the intended recipient is prohibited.
This e-mail and its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and attachments before
opening them. If you have received this e-mail in error, kindly delete this e-mail from all

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message