You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Steven Maring <St...@trcinc.com> on 2000/04/06 17:19:56 UTC

what CLASSPATH available to logicsheets?

I have a homemade class that I want to use in a logicsheet.  I have put the
directory to the class in the system CLASSPATH and in the wrapper.classpath
in tomcat.properties, but it STILL cannot find my class.  How does this
work?  Have I missed something?


java.lang.Exception: XSP Java Compiler: Compilation failed for _login.java
53: Undefined variable or class name: DataServletUtils
    HashMap loginRequestParams = DataServletUtils.getParameters( request );
                                 ^
61: Undefined variable or class name: DataServletUtils
    DataServletUtils.redirect( url, response, loginResponseParams );
    ^
2 errors



<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>

  <xsl:template match="page">

    <xsl:processing-instruction
name="cocoon-process">type="xsp"</xsl:processing-instruction>
    <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core">

      <xsp:structure>
	<xsp:include>java.util.HashMap</xsp:include>
	<xsp:include>java.net.URL</xsp:include>
      </xsp:structure>

      <page>

      <xsp:logic><![CDATA[

	     HashMap loginRequestParams = DataServletUtils.getParameters(
request );
	     String username = (String) loginRequestParams.get( "username"
);
	     String password = (String) loginRequestParams.get( "password"
);
				
	     URL url = new URL( "http://luckydog/modelSystem/redirected.xml"
);
	     HashMap loginResponseParams = new HashMap();
	     String key = "username";
	     loginResponseParams.put( key, username );
	     DataServletUtils.redirect( url, response, loginResponseParams
);

      ]]></xsp:logic>
      
      </page>

    </xsp:page>

  </xsl:template>

</xsl:stylesheet>

IMG tag in XSLT

Posted by JAnderson <JA...@O-C-G.com>.
I have been experimenting with building my first HTML pages with Cocoon
using the index.htm that comes with Tomcat as a sample page. Cocoon
does not include the <img> tag in the output file. I have tried various
things, include setting it up like the <link> tags with the comment
placed between them. When I run the same .xsl file with an
input .xml file through eXcelon's XSL editor, the <img> tag
is retained with no problem. Any help on why Cocoon drops it?

Joseph Anderson


<xsl:template match="page">
   <xsl:processing-instruction
name="cocoon-format">type="text/html"</xsl:processing-instruction>
   <html>
    <head>
     <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1"/>
     <title><xsl:value-of select="@title"/></title>
     <link rel="stylesheet" href="style.css"><!-- no not remove this
comment --></link>
    </head>
    <body bgcolor="#FFFFFF">

     <img src="tomcat.gif" alt="No Pic"/>

     <table width="100%" border="0" cellpadding="10" cellspacing="0">
      <tr valign="top">
       <xsl:apply-templates/>
      </tr>
     </table>

     <br/>
     </body>
   </html>
  </xsl:template>



Re: what CLASSPATH available to logicsheets?

Posted by Ulrich Mayring <ul...@denic.de>.
Steven Maring wrote:
> 
<xsp:include>java.util.HashMap</xsp:include><xsp:include>java.net.URL</xsp:include>

Have you included your class like the above classes?

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung