cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Litrik De Roy" <cocoon-us...@litrik.com>
Subject Re: Making a new Action
Date Sun, 18 Aug 2002 08:07:55 GMT
For my project I have used XSP to write actions.

Advantages:
- The is no need to do manual compiles. Cocoon will compile it when the
source has changed.
- The XSP can be stored in a location relative to a subsitemap instead of
the WEB-INF directory.

It took me a while to figure out how to do it (almost no documentation and
only a few entires in the mailing list archive).

If you need some help, let me know and I'll post a summary.

Litrik De Roy
www.litrik.com


----- Original Message -----
From: "Geoff Howard" <ghoward@crosswalk.com>
To: <cocoon-users@xml.apache.org>
Sent: Saturday, August 17, 2002 12:51 AM
Subject: RE: Making a new Action


>
> > Actions are java code which i write seperatly from everything else.
>
> right.
>
> > Do i save this file as a.java or .jsp?
>
> .java, and then you compile it.
>
> > What directories do i have to place in into in order for it to properly
> compile
>
> you can compile it from anywhere, but you need your classpath set up to
> include anything mentioned in your .java file.
>
> > and for the sitemap to see it?
>
> after it's compiled, place it in WEB-INF/classes (if you've used a package
> declaration, remember to duplicate the directory structure of the
package).
> Alternatively you can jar it up with any other classes you create and
place
> it in WEB-INF/lib
>
> > Does this compiling happen automatically or do i have to do it manually?
>
> manually.
>
> Hope that helps,
> Geoff Howard
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message