I haven't kept up with newer releases of Turbine, but in the past, the
RunData object has been available to JSP pages as a request attribute. It is
added to the request by the JspService, with an attribute name of "rundata".
>From JspService.java:
/** The key used to store an instance of RunData in the request */
public static final String RUNDATA = "rundata";
>From TurbineJspService.java:
/**
* Adds some convenience objects to the request. For example an
instance
* of JspLink which can be used to generate links to other templates.
*
* @param RunData the turbine rundata object
*/
public void addDefaultObjects(RunData data)
{
HttpServletRequest req = data.getRequest();
req.setAttribute(LINK, new JspLink(data));
req.setAttribute(RUNDATA, data);
}
So you should be able to get it directly from the request object.
Kevin
-----Original Message-----
From: Daniel Pfuhl [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 6:01 AM
To: Turbine Users List
Subject: Re: RunData and JSP pages
hmm
also if I use
RunData runData = RunDataFactory.getRunData(request, response, config);
it is not working. during the debugging i realized that
the cookie for identifying the session is not set
correctly. in my server-environment i have to use tomcat 3.2.4
can this be the problem?
would be nice to get some help debugging this!
thanx!
--
daniel
Daniel Pfuhl wrote:
> Hi there,
>
> can anyone give me a clue how to use the RunData object
> within JSP pages?
>
> I only found something like this to implement it:
>
> RunDataService rds = new TurbineRunDataService();
> rds.init();
> RunData runData = rds.getRunData(request, response, config);
>
> but in this case the rds will be initiated everytime I load
> the page - so no data can passed around :(
>
> It would be very nice if someone could point me in the right
> direction for the handling of jsp/xsp pages.
>
> FYI: I don't want to use the velocity - templates because,
> we have a working environment using jsp/xsp and want to
> integrate Turbine in this (what is work to do enough ;-)
>
> any suggestion appreciated !!
>
> thnx
>
--
daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]