Henning,
What I *think* I need the rundata for is to have the various $link etc pull
tools available. If I do this:
Contect context = new VelocityContext() then I recieve an context object
that doesn't have the $link etc tools...
If I get the context via RunData, then the $link tool exists. However, I'm
guessing there is another way?
Eric
-----Original Message-----
From: Henning P. Schmiedehausen
To: [EMAIL PROTECTED]
Sent: 7/16/03 5:54 AM
Subject: Re: RunData object not in web post/get?
"epugh" <[EMAIL PROTECTED]> writes:
RunData is specific to the current request cycle of a user. If you run
this from e.g. a scheduled job, you don't have any concept of a
"current request" or even a logged in user.
What do you need from RunData?
Regards
Henning
>Hi all.. I have a chunk of code that uses the $link tool in the
Velocity
>template. It used to be in an Action, but I have moved it to it's own
class
>so I can call it from a scheduled job. However, unless I have access
to the
>runData object, the pull tools doen't seem to exist.. How can I get a
>runData object when I am not in a get or post method?
>This is what I want:
>WorkorderProcessingStatus report = new WorkorderProcessingStatus();
>report.setRunData(data);
>Where can I get the RunData object?
>Eric
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
[EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
Java, perl, Solaris, Linux, xSP Consulting, Web Services
freelance consultant -- Jakarta Turbine Development -- hero for hire
--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]