File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes using MSXML3 (DOM) within JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "using MSXML3 (DOM) within JSP" Watch "using MSXML3 (DOM) within JSP" New topic

using MSXML3 (DOM) within JSP

Kevin Fay

Joined: Feb 13, 2001
Posts: 5
I need help integrating MSXML3 within a JSP page in a web format.
I have an XSL file as such:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="">
<xsl:template match="/">
.hdr {font-family:Verdana;font-size:9pt;border-bottom:1px black solid;font-weight:bold;}
.normal {font-family:Verdana;font-size:8pt;border-bottom:1px silver solid;}
<xsl:for-each select="//books/book">
<TD CLASS="normal"><xsl:value-of select="title" /></TD>
<TD CLASS="normal"><xsl:value-of select="quantity" /></TD>
<TD CLASS="normal"><xsl:value-of select="price" /></TD>


Assume the XML is good XML that conforms to what the XSL is looking for.
I want to dynamically pass an XML string from one JSP page(JSP1) to another (JSP2) that will:
1. get the xml string from the querystring
2. load the XSL page above
3. send these 2 sources to a parser (preferably DOM/MSXML3)
4. display HTML
What is the syntax of my JSP 2 that will perform the following 4 points above?

Kevin Fay

Joined: Feb 13, 2001
Posts: 5
Here is the answer. I've noticed that this board is very slow to help....(I'll keep this in mind in the future) Looks like a lot of people just want answers and don't contribute!!!
I agree. Here's the link:
subject: using MSXML3 (DOM) within JSP
It's not a secret anymore!