hi leon,

after translation XSPs are Generator's, they inherit from XSPGenerator. to
make it short, your XSPs inherit the protected field 'manager' that contains
a ComponentManager you can use. this is for 2.1.3, things might be a little
different in later versions (e.g. ServiceManager instead of
ComponentManager).

> -----Ursprungliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von Leon Widdershoven
> Gesendet: Freitag, 16. April 2004 17:53
> An: users
> Betreff: How to obtain a ComponentManager in xsp?
>
>
> Hi,
>
> I am trying to do logic within an XSP based on the settings
> within an authentication context, using the authentication
> framework.
>
> Unfortunately, this is not directly supported (at least not using
> my sitemap). The Authentication Session data is of course used
> in the xsp page, using
> <session:getxml context="authentication"
>                  path="/authentication/data/canDoThis"/>
> but is inserted in the SAX stream by the session transformer in
> the sitemap. As such, the results can be used by the XSL transformer,
> but not by the java program created by the xsp generator.
>
> Thus, I want to insert those variables from the authentication
> framework in my xsp by accessing this context directly.
>
> If I however can obtain a ComponentManager in my XSP I can
> just use XSPSessionFwHelper to get my parameters, and still
> be able to use the results stored in the session in my xsp
> logic (for instance to prevent unneccesary queries which then
> need to be filtered out with XSL).
>
> I *could* perhaps just access the Context in xsp, but I would'n
> know where to look and what the results are. That, for me, would
> be a last resort.
>
> I hope someone can provide a hint on how to do this,
> Leon
>
> ---------------------------------------------------------------------
> 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]

Reply via email to