This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Embedding HTML in JSP


<%...%> is not valid XML. JSP has alternative syntax you can use which is
valid XML. Check your JSP documentation.

- Eugene

: -----Original Message-----
: From: Amit Khare [mailto:amitk@myrealbox.com]
: Sent: Thursday, April 05, 2001 9:49 AM
: To: xsl-list@lists.mulberrytech.com
: Subject: [xsl] Embedding HTML in JSP
: 
: 
: 
: 
: 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
: 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]