• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run XSP? Urgent!!!!

 
shailendra vasale
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi All,
I installed Cocoon-1.8.2 with Tomcat-3.2.3 server.Now I want to run the following XSP file.
So in which directory of tomcat I should put this Sample.xsp file.Then how to run this? Does it require Sample.xsl also?
Can anybody please help me in running this.
Thanks in advance.
Regards,
SHAILENDRA.
<?xml version="1.0"?>
<?cocoon-process type="xsp"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="sample.xsl" type="text/xsl"?>
<xsp age language="java" xmlns:xsp="http://www.apache.org/1999/XSP/Core">
<page title="Time of Day">

<xsp:logic>
// Define a variable to hold the time of day
Date now = new Date();
</xsp:logic>

<p>
To the best of my knowledge, it's now
<!-- Substitute time of day here -->
<xsp:expr>now</xsp:expr>
</p>
</page>
</xsp age>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic