You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by CHEUNG KIN WAI <02...@stu.vtc.edu.hk> on 2004/08/10 09:50:44 UTC

Question about the .page file.

Hi all.
I am now making a Java program to generate some .page files for tapestry .
The process of generating is fine, however, after I deploy what have generated by my Java program, I received an exception about the structure of the .page file is wrong.

In my Java program, the way it generates the .page file(XML) is just writhing plain text to it.
The .page have no error about the XML syntax coz I can view it by IE and no error found.
But after I deployed it and run, I received the following exception from tapestry.

Could not parse specification context:/WEB-INF/Home.page. 
   
Document root element "page-specification", must match DOCTYPE root "null". 
   
Document root element "page-specification", must match DOCTYPE root "null". 
columnNumber: 63 
lineNumber: 4 

Can anyone tell me why it I recevied such exception? I am using Tomcat 5 as my servlet container.
And here is my .page file:

<?xml version="1.0" encoding="UTF-8" ?> 
<!--  generated by Jor -->

<page-specification class="org.apache.tapestry.html.BasePage">
<description><![CDATA[   add a description   ]]></description>
<component id="nextPage" type="PageLink">
<static-binding name="page">Jor</static-binding>
</component>
</page-specification>

Thank you all!

Jor



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org