1/Can I put anything in the session ?
2/In the xsp page, haow can I get attribute from the DOM object in the session ?
Like that : <xsp-session:get-attribute name="the_object_in_the DOM"/>
3/If I want the xsp generator to retreive the DOMsessionelement from my custom transfomer, should I use a resource ?
At 14:51 11/03/2003 +0100, you wrote:
On 11.Mar.2003 -- 02:46 PM, Lionel Crine wrote: > At 14:32 11/03/2003 +0100, you wrote: > >On 11.Mar.2003 -- 02:20 PM, Lionel Crine wrote: > >> I have a pipeline in which there is my custom transformer. > >> In this transformer I have a method which access to an XMLDB and get a > >> result object. > >> > >> I want my transformer to get the object (in a session) and get it to an > >xsp > >> page. > >> > >> Is it possible to do such a thing ? > > > >Sure. Just add the object to the session and retrieve it in your XSP > >e.g. using the session logicsheet. However, since the transformer runs > >in parallel to the XSP, they may not be within the same pipeline. IOW > >the XSP can reliably read the value only for a subsequent > >(i.e. different) request. > > > If I understand well, this is possible. > > But how can I add the object to the session. I think I should do that in > the transformer. > Can you tell me some more ?
You need to get hold of the request object through the objectModel and the ObjectModelHelper. Get a session object from the request and set an attribute. Have a look at the transformers in the distribution for sample code.
Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]