cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: empty session attribute ?
Date Thu, 13 Mar 2003 18:52:07 GMT
as you were probably already told: actions are executed at pipeline assembly
time, i.e. before the pipeline processing (including your transformer)
starts.

> -----Ursprungliche Nachricht-----
> Von: cocoon-users-return-47754-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-47754-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Lionel Crine
> Gesendet: Donnerstag, 13. Marz 2003 16:02
> An: cocoon-users@xml.apache.org
> Betreff: empty session attribute ?
>
>
> I have a Transformer which store an object into the session and thean
> Action, but the Action only get the name of the attribute, why ?
>
> Here is my action code :
> public class MyAction extends AbstractAction implements ThreadSafe
> {
>      public Map act (Redirector redirector, SourceResolver resolver, Map
> objectModel, String src,
>              Parameters parameters) throws Exception {
>          Request req = ObjectModelHelper.getRequest(objectModel);
>          if (req == null) {
>              getLogger ().debug ("No request object");
>              return null;
>          }
>
>          /* check session validity */
>          Session session = req.getSession ();
>          if (session == null) {
>              getLogger ().debug ("No session object");
>              return null;
>          } else {
>
> 	    System.err.println("Session is on");
> 	    proprietary_Object res =
> (proprietary_Object)session.getAttribute("resultspace"); ----> res is
> empty, why that ?
> 	}
> 	return null;
>      }
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message