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:
> >>
> >><map:match pattern="examples/xsp/welcome">
> >>      <map:act type="form-validator">
> >>          <map:parameter name="descriptor"
> >>               value="context:///mount/myapp/descriptor.xml"/>
> >>          <map:parameter name="validate-set" value="query"/>
> >>          <map:transform src="stylesheets/redefine-params.xsl">
> >>              <map:parameter name="use-request-parameters" value="true"/>
> >>          </map:transform>
> >>          <map:generate src="examples/xsp/searching.xsp"/>
> >>          <map:transform src="stylesheets/simple-page2html.xsl"/>
> >>          <map:serialize/>
> >>    </map:act>
> >>          <map:generate src="examples/xsp/query.xsp"/>
> >>          <map:transform src="stylesheets/simple-page2html.xsl"/>
> >>          <map:serialize/>
> >></map:match>
> >>
> >>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]>

Reply via email to