RE: session in xsp

2002-09-24 Thread Luca Morandini

Gabor,

I'm lost: why can't you use writeDOMsession ?
It just stores in session an element given in the input SAX stream. The element to be 
stored can be produced in a number of ways,
including XSLT; I presume this fits you need.

Am I missing something ?

Best regards,


-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 2:54 PM
> To: [EMAIL PROTECTED]
> Subject: Re: session in xsp
>
>
> Hi Luca,
>
> I have to change and check some of posted parameters' names and values.
> That's why I want to use an xsl (or anything else where I can define
> rules to changes) and cannot use a writeDOMSession transformer. After it
> I can use the writeDOMSession
>
> Gabor
>
> Luca Morandini wrote:
>
> >Gabor,
> >
> >why don't you add a "writeDOMSession" transforming step ?
> >
> >You could generate an element using "redefine-params.xsl" with all the request 
>paremeters you like, and then write that
> very element
> >to the session.
> >
> >Best regards,
> >
> >-
> >   Luca Morandini
> >   GIS Consultant
> >  [EMAIL PROTECTED]
> >http://utenti.tripod.it/lmorandini/index.html
> >-
> >
> >
> >
> >
> >>-Original Message-
> >>From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, September 24, 2002 1:14 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: session in xsp
> >>
> >>
> >>HI,
> >>
> >>I've got a page with input parameters, an action validate the
> >>parameters. If the validation (the action) is success I want to redefine
> >>parameters as get all posted parameters and put them to the session. I
> >>want it do in the redefine-params.xsl like here:
> >>
> >>
> >>  
> >>   >>   value="context:///mount/myapp/descriptor.xml"/>
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>  
> >>
> >>  
> >>  
> >>  
> >>
> >>
> >>how can I access the session from the redefine-params.xsl , because I
> >>want to put parameters into session but I cannot.
> >>Or is there any other solution to do this (define an own action is not
> >>acceptable for me)?
> >>
> >>Gabor
> >>
> >>
> >>-
> >>Please check that your question  has not already been answered in the
> >>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >>
> >>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >>For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >>
> >>
> >>
> >
> >
> >-
> >Please check that your question  has not already been answered in the
> >FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> >To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> >For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
>
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: session in xsp

2002-09-24 Thread Gabor Bartha

Hi Luca,

I have to change and check some of posted parameters' names and values. 
That's why I want to use an xsl (or anything else where I can define 
rules to changes) and cannot use a writeDOMSession transformer. After it 
I can use the writeDOMSession

Gabor

Luca Morandini wrote:

>Gabor,
>
>why don't you add a "writeDOMSession" transforming step ?
>
>You could generate an element using "redefine-params.xsl" with all the request 
>paremeters you like, and then write that very element
>to the session.
>
>Best regards,
>
>-
>   Luca Morandini
>   GIS Consultant
>  [EMAIL PROTECTED]
>http://utenti.tripod.it/lmorandini/index.html
>-
>
>
>  
>
>>-Original Message-
>>From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, September 24, 2002 1:14 PM
>>To: [EMAIL PROTECTED]
>>Subject: session in xsp
>>
>>
>>HI,
>>
>>I've got a page with input parameters, an action validate the
>>parameters. If the validation (the action) is success I want to redefine
>>parameters as get all posted parameters and put them to the session. I
>>want it do in the redefine-params.xsl like here:
>>
>>
>>  
>>  >   value="context:///mount/myapp/descriptor.xml"/>
>>  
>>  
>>  
>>  
>>  
>>  
>>  
>>
>>  
>>  
>>  
>>
>>
>>how can I access the session from the redefine-params.xsl , because I
>>want to put parameters into session but I cannot.
>>Or is there any other solution to do this (define an own action is not
>>acceptable for me)?
>>
>>Gabor
>>
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. 
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
>>
>>
>
>
>-
>Please check that your question  has not already been answered in the
>FAQ before posting. 
>
>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
>
>  
>




-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: session in xsp

2002-09-24 Thread Luca Morandini

Gabor,

why don't you add a "writeDOMSession" transforming step ?

You could generate an element using "redefine-params.xsl" with all the request 
paremeters you like, and then write that very element
to the session.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


> -Original Message-
> From: Gabor Bartha [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 1:14 PM
> To: [EMAIL PROTECTED]
> Subject: session in xsp
>
>
> HI,
>
> I've got a page with input parameters, an action validate the
> parameters. If the validation (the action) is success I want to redefine
> parameters as get all posted parameters and put them to the session. I
> want it do in the redefine-params.xsl like here:
>
> 
>   
>   value="context:///mount/myapp/descriptor.xml"/>
>   
>   
>   
>   
>   
>   
>   
> 
>   
>   
>   
> 
>
> how can I access the session from the redefine-params.xsl , because I
> want to put parameters into session but I cannot.
> Or is there any other solution to do this (define an own action is not
> acceptable for me)?
>
> Gabor
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: Session in XSP

2002-05-06 Thread yuryx

yuryx wrote:

> Hello all!
>
> May be anyone to answer me for the next question:
> Why org.apache.cocoon.environment.Session not available in XSP?
> Why cocoon-dev shouldn't built-in it into XSP as 
> org.apache.cocoon.environment.Request parameter (for example)?
>
> Thanx.
> Yury.
>
>
>
> -
> Please check that your question has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
Sorry by the question.
In Cocoon2.0.2-2.1-dev object session is present in XSP.

Yury.




-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>