Hi Jason!
Jason van Zyl schrieb:
> On 7/3/01 7:58 AM, "Alexander Banthien" <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > can anybody help me with the following problem?
> >
> > I want a scheduled job to periodically generate HTML-Emails
> > (VelocityHtmlEmail).
>
> In 2.1 you can use the TurbineServlet static helper which is an accessor
> for the TurbineServletService which stores all the information about
> the servlet if that's what you need.
>
>
> > Now I don't know where to take a RunData object from to initialize my
> > VelocityHtmlEmail with, since there is no request.
> >
> > Any ideas?
>
> What information do you need access to?
>
Basically I only wanted to instantiate a VelocityHtmlEmail having only a
Context available but no RunData. The only constructor available is
VelocityHtmlEmail(RunData data). Since I am starting the job from the
Scheduler, there is no such thing as a request or RunData object.
I found out though, that the class VelocityHtmlEmail in fact only needs a
context, but uses the RunData-Argument to the constructor to draw the
context out of it.
So I rewrote VelocityHtmlEmail to provide a second constructor to be
initialized with a Context. If you are interested, I'll make a patch (only
trouble: I've never done it, so patching will take me a bit of time and I
have little time)
Thanks for the reply and let me know!
regards Alexander
>
> > my regards, Alexander
> >
> > --
> > ------------------------------------------------
> > Alexander Banthien [EMAIL PROTECTED]
> > JusTec GmbH +49 761 401269 41
> > Haslacher Str. 126 +49 761 401269 13 (Fax)
> > 79115 Freiburg Germany
> > ------------------------------------------------
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
>
> jvz.
>
> Jason van Zyl
>
> http://tambora.zenplex.org
> http://jakarta.apache.org/turbine
> http://jakarta.apache.org/velocity
> http://jakarta.apache.org/alexandria
> http://jakarta.apache.org/commons
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
------------------------------------------------
Alexander Banthien [EMAIL PROTECTED]
JusTec GmbH +49 761 401269 41
Haslacher Str. 126 +49 761 401269 13 (Fax)
79115 Freiburg Germany
------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]