Reuben,

Try something like this.
<xsp:logic>
com.company.package.Test t=new com.company.package.Test();
......
......
</xsp:logic>

You can 'import' the class using XSP but I can't remember how. I found
it easier just to reference the class by package. Hope this helps.

Look in the esql logicsheet to get an idea on how to import classes
using XSP. The logicsheet should have it in there to import the
java.sql. package.

Regards
 
 
Scott Warren
Ocom Software
... Exceeding Quality.....
email | mailto:[EMAIL PROTECTED]
web | ocom.com.au
 

-----Original Message-----
From: Reuben Christie [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 21 August 2003 3:07 AM
To: [EMAIL PROTECTED]
Subject: how to creat object of a class in xsp


hi all.. i m a newbie to cocoon. i m writing an xsp page..in that page i
have a lines like this.
<xsp:logic>
Test t=new Test();
......
......
</xsp:logic>

and i cant get my xsp page compiled it gives erro that

org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
standardconfig_xsp:
Line 68, column 3:  class Test not found in class
org.apache.cocoon.www.pmp.documents.xsp.standardconfig_xsp


can somebody throw some light on it? it will be a great help to me.
NB: my Test.java and Test.class are both in the same folder with my xsp
page.
thanks inadvance
reuben


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



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

Reply via email to