java startup action

"Andres Alcarraz" <[email protected]> Mon, 7 May 2007 17:28:02 -0300
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
sorry but in my previous post I was having troubles with gmail and in
the only one time I was able to send the mail I forgot to write the
subject again when I made the copy & paste.

Thanks and please forgive the noise

Andr=E9s

2007/5/7, Andres Alcarraz <[email protected]>:
> Hi all, I was trying to make a java startup action when I realized
> that I cannot access the site context from them because the Context is
> null, that doesn't occur in script actions where you have a reference
> to the site context, I wonder what is the sense of having a startup
> action that has no access to the site context.
> Looking at the code I've found that when an action script is found
> site context is passed through the constructor, but that doesn't
> happen in java actions, I think the execute method could have more
> parameters or Action interface could have a setSiteContext() method, I
> know this would not be backward compatible, but a new StartupAction
> could be defined.
> What others means do i have to access the site context from a java
> startup action?
>
> I'm using jpublish 3.0b2 thanks in advance
>
>
> Andr=E9s
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jpublish-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jpublish-developer
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/