cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <roman.koz...@opencascade.com>
Subject Re: Jar files
Date Thu, 26 Aug 2004 09:42:19 GMT
There should be a mandatory result document's root tag (with any name):

<xsp:page....
.....
<xsp:structure>
<xsp:include>.....</xsp:include>
....
</xsp:structure>

<xsp:logic>
... Class methods and variables definitions ...
</xsp:logic>
<some-root-tag>
<xsp:logic>
... The main code. There you can call your methods ...
</xsp:logic>
</some-root-tag>
</xsp:page>

Roman

Adriano Smith wrote:

> The directory is cocoon/build/webapp/WEB-INF/lib
>
> However i get the error
>
> \"Send cannot be resolved or is not a type\"
> Send s = new Send();
>
> Also the following error is seen when trying to call another method from a method in
XSP.
>
> The xsp is like this..
>
> <xsp:page....
> .....
> <xsp:structure>
> <xsp:include>.....</xsp:include>
> ....
> </xsp:structure>
>
> <xsp:logic>
> public String method1()
> {
>    content = method2(....);
> }
> </xsp:logic>
>
> <xsp:logic>
> public String method2(....)
> {
> ........
> ........
> }
> </xsp:logic>
>
> </xsp:page>
>
> The error seen is
> \"The method method2(BodyPart, int) is undefined for the type reader_xsp\"
> content = method2(mp.getBodyPart(partNum),partNum);
>
>
> Should anything else be included for these 2 to work?
>
>
>
> Quoting  roman.kozlov@opencascade.com:
>
> > Hi,
> >
> > Jones A wrote:
> >
> > > I have a jar file \"test.jar\" which i have placed in the WEB-INF/ lib
> > directory.
> > >
> > > The jar contains a class com/test/mail/send.class
> > >
> > > How can this class be used in xsp?
> > >
> > <xsp:page language=\"java\" xmlns:xsp=\"http://apache.org/xsp\">
> > <xsp:structure>
> >   <xsp:include>com.test.mail.send</xsp:include>
> > </xsp:structure>
> > ...
> >
> > > Is it necessary to include the name of the jar file in the xsp ?
> > >
> > no if you meant cocoon/WEB-INF/lib.
> >
> > >
> > >
> > >
> > >
> > > [Image]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
>
>
> [Image]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message