Ok. I received the following error when running on Tomcat.  This same code
worked fine on Sun J2ee RI server. The code follows the error message.

The XML page cannot be displayed

Cannot view XML input using XSL style sheet.  Please correct the error and
then click the Refresh button, or try again later.

End tag "HEAD" does not match the start tag 'LINK'. Error processing
resource
'http://localhost:8080/metadataTags/TableEntry.jsp'. Line 8, Position 5

</HEAD>


Jsp Code follows:

<jsp:root
  xmlns:jsp="http://java.sun.com/JSP/Page";
  xmlns:md="/metadataTags.tld"
  version="1.2">

<jsp:directive.page errorPage="Error.jsp"/>
<jsp:useBean id="mdbean" scope="session" class="metadataTags.MDBean" />
<jsp:setProperty name="mdbean" property="tablename" />

<jsp:text><![CDATA[
  <HTML>

  <HEAD>
  <TITLE>Meta Data Table Entry</TITLE>
  <SCRIPT language="JavaScript" SRC="common.js"></SCRIPT>
  <LINK rel="stylesheet" href="Styles.css" type="text/css">
  </HEAD>

  <BODY>

  <H1>Meta Data Display</H1>
  <BR>

  <H2>Enter Table Name:</H2>
  <P>
  <FORM name="tbl" method="post" onSubmit="return SubmitPressed()">
  <LABEL for="tablename">Table Name:</LABEL>
  <INPUT type="text" name="tablename" size="10">
  <BR>
  <INPUT type="submit" value="Submit">
  </FORM>
  </P>
]]></jsp:text>

<md:confirm>

  <jsp:scriptlet>System.out.println("message BEFORE SCRIPT = " +
message);</jsp:scriptlet>

  <jsp:text><![CDATA[<SCRIPT language="JavaScript">CheckMsg("]]></jsp:text>
  <jsp:expression>message</jsp:expression>
  <jsp:text><![CDATA[")</SCRIPT>]]></jsp:text>

  <jsp:scriptlet>System.out.println("message AFTER SCRIPT = " +
message);</jsp:scriptlet>

</md:confirm>

<jsp:forward page="TableDisplay.jsp"/>

<jsp:text><![CDATA[
  </BODY>
  </HTML>
]]></jsp:text>

</jsp:root>

-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 16, 2002 12:18 AM
To: Tomcat Users List
Subject: Re: JSP1.2 xml syntax




On Fri, 15 Nov 2002, Doug Blackburn wrote:

> Date: Fri, 15 Nov 2002 22:57:56 -0500
> From: Doug Blackburn <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: JSP1.2 xml syntax
>
> According to JSP1.2 spec HTML tags within the JSP page written in XML
syntax
> can be encapsulated in <jsp:text><![CDATA[..... ]]></jsp:text>. I used
this
> construction successfully when deploying to the J2EE Reference
> Implementation server from Sun. However, when I ported it to Tomcat 4.1.12
I
> received XML parsing errors within the CDATA section.
>
> Any insight would be greatly appreciated.

How is anyone supposed to be able to offer any useful advice unless you
show us the source for a page that works in one environment but not the
other?  And show us what error messages you get when it fails?

> Thanks,
> Doug Blackburn
>

Craig


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to