cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabor Bartha <gabor.bar...@mailbox.hu>
Subject Re: session in xsp
Date Tue, 24 Sep 2002 12:53:33 GMT
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
>              lmorandini@ieee.org
>http://utenti.tripod.it/lmorandini/index.html
>---------------------------------------------
>
>
>  
>
>>-----Original Message-----
>>From: Gabor Bartha [mailto:gabor.bartha@mailbox.hu]
>>Sent: Tuesday, September 24, 2002 1:14 PM
>>To: cocoon-users@xml.apache.org
>>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:     <cocoon-users-unsubscribe@xml.apache.org>
>>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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:     <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
>
>
>
>  
>




---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message