Hello,
I have such a problem in my logicsheet. I defined my own package
where I have functions for creating and deleting user directories.
If I use them in my logicsheet with the full package path, they
work correctly, for example:
<xsp:expr>com.letterman.file.dirOperations.deleteDir(dir)</xsp:expr>
But when I want to get rid of the long name and want import the
package with <xsp:include> it seems not working, because I get an
error. The particular part of logicsheet looks like this:
<xsl:template match="xsp:page">
<xsp:page>
<xsl:apply-templates select="@*"/>
<xsp:structure>
<xsp:include>java.text.*</xsp:include>
<xsp:include>java.util.*</xsp:include>
<xsp:include>com.letterman.file.*</xsp:include>
</xsp:structure>
<xsl:apply-templates/>
</xsp:page>
</xsl:template>
And the function call then:
<xsp:logic>
File dir=new File(<xsl:copy-of select="$path"/>);
</xsp:logic>
<xsp:expr>deleteDir(dir)</xsp:expr>
I got the following error message:
org.apache.cocoon.ProcessingException: Exception in
ServerPagesGenerator.generate(): java.lang.RuntimeException:
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error
compiling benutzer_delete_xsp: ERROR 1
(org\apache\cocoon\www\LetterMan\resources\admin\pagecontent\benutzer\benutzer_delete_xsp.java):
... (fullpath) ); // start error (lines 565-565) "The method
deleteDir(File) is undefined for the type benutzer_delete_xsp"
XSPObjectHelper.xspExpr(contentHandler, deleteDir(dir)); // end
error this.characters("\n\t\t\t\t\t\t\t");
this.characters("\n\t\t\t"); ... Line 565, column 0: The method
deleteDir(File) is undefined for the type benutzer_delete_xsp
What might be the problem?]
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]