> -----Oorspronkelijk bericht-----
> Van: praktikant [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 29 augustus 2002 15:10
> Aan: [EMAIL PROTECTED]
> Onderwerp: RE: Making a new Action
>
>
> Hi,
> I have a further question on this.
>
> >>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
>
> I have made a package, but I don't understand this part:
> (if you've used a package declaration, remember to duplicate the directory
> structure of the package)
>
> Duplicate the directory structure?
> I don't know how?
> And where to place?
it means: if your class is in a package (eg: com.mysoft.MyClass)
(the first line in your java-file will read: package com.mysoft; )
then you'll need to put the class-file (MyClass.class) in
WEB-INF/classes/com/mysoft/
(creating these directories as needed)
This is common java-practice and is not specific to Cocoon.
>
> >>Does this compiling happen automatically or do i have to do it manually?
>
> >manually.
>
> >Hope that helps,
> >Geoff Howard
>
> thanks and regards
> Hans
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>