You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ramsés Morales <ra...@computer.org> on 2001/09/28 23:18:24 UTC

[C2] sessions and file generator.

Hi.

I have one year experience with Cocoon1, but now I'm jumping to C2.

I would like to know if I can check a session when someone requests a
page that is generated by the file generator.

(I know that that page could be an xsp page, generated by the
ServletGenerator, that does the check and generates the content. But I
want to check the session before procesing a plain XML file with no xsp)

If that is so, I guess it would be some complex matching on the sitemap.
Right?

Thanks for your help.




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: [C2] sessions and file generator.

Posted by Vadim Gritsenko <va...@verizon.net>.
That would be simple session validator action.

Check following fragments from Cocoon's sitemap:

   <map:action name="session-isvalid" src="org.apache.cocoon.acting.SessionIsValidAction"/>

....

  <map:match pattern="session-state/example">
      <map:act type="session-isvalid">


Vadim

> -----Original Message-----
> From: Ramsйs Morales [mailto:ramses@computer.org]
> Sent: Friday, September 28, 2001 5:18 PM
> To: cocoon-users@xml.apache.org
> Subject: [C2] sessions and file generator.
>
>
> Hi.
>
> I have one year experience with Cocoon1, but now I'm jumping to C2.
>
> I would like to know if I can check a session when someone requests a
> page that is generated by the file generator.
>
> (I know that that page could be an xsp page, generated by the
> ServletGenerator, that does the check and generates the content. But I
> want to check the session before procesing a plain XML file with no xsp)
>
> If that is so, I guess it would be some complex matching on the sitemap.
> Right?
>
> Thanks for your help.
>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>