[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Embedding HTML in JSP

Subject: Embedding HTML in JSP
From: Amit Khare <amitk@xxxxxxxxxxxxx>
Date: Thu, 05 Apr 2001 11:49:29 -0500
amit khare


Hi ,
     This my first mail.
      I was trying to embed html into my JSP pages through XSL.

Trying to output :
<input type="hidden" name="ProductID" value="<%=request.getParameter(\"productid\")%>">
the \ act as the escape characters.


I wrote the following :

<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">ProductID</xsl:attribute>
<xsl:attribute name="value">&lt;%=request.getParameter(\&quot;productid\&quot;)%&gt;</xsl:attribute>
</xsl:element>


I got the output
<input type="hidden" name="ProductID" value="<%=request.getParameter(\&quot;productid\&quot;)%>">


Somehow the processor (Xalan and MSXML) is not processing the &quot; entity.

It will be great if somebody could help me out.

Thanks in advance guys,

Amit


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • writing an xml with jsp
    • Java XML - Thu, 5 Apr 2001 10:15:25 -0400 (EDT)
      • <Possible follow-ups>
      • xml - Thu, 5 Apr 2001 10:57:55 -0400 (EDT)
        • Amit Khare - Thu, 5 Apr 2001 12:30:18 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.