nobody an idea?
i need the cookies to prefille my form, after I validate the form serverside.


perhaps it's an architecture question of my application or a generall question.

I'd like to save "session"-like data on a specific place, which is conform with 
the rest approach. 
so I don't want so safe the form data in a user graph.


so the question is: 
how you build systems like

- a shop basket? (not logged in)
- validate forms and prefille the form (not logged in)
- collect data over a few sites (a process with a few steps) (not logged in)
-  create a questionnaire or a quiz over a few sites (not logged in) 


how you save and retrieve the data in a secure way and in a rest conform way?



cheers
oli




-----Ursprüngliche Nachricht-----
Von: Oliver Strässer 
Gesendet: Mittwoch, 12. Januar 2011 17:58
An: clerezza-dev@incubator.apache.org
Betreff: AW: Scala Page and Cookies

Hi tsuy

i tried your approach today.
I retrieve from the RequestProperties. getHttpHeaders method only a 
MultivaluedMap.
So I havn't access to the cookies.

Isn't the a way to access the javax.ws.rs.core.HttpHeaders object in ssp?


oli


-----Ursprüngliche Nachricht-----
Von: Tsuyoshi Ito [mailto:tsuy....@trialox.org] 
Gesendet: Donnerstag, 23. Dezember 2010 18:08
An: clerezza-dev@incubator.apache.org
Betreff: Re: Scala Page and Cookies

Hi Oli

There is the possibility to retrieve some of the header information
from requestProperties (an inner class in
org.apache.clerezza.platform.typerendering.Renderlet)

e.g. you can use requestProperties.getHttpHeaders in your ssp

But I haven't used it yet. So I am not sure if it is possible to set
or read cookies - also I am not sure if this task should be done in
ssp.

Cheers
Tsuy

2010/12/23 Oliver Strässer <oliver.straes...@getunik.com>:
> some ideas?
>
> Von: Oliver Strässer
> Gesendet: Mittwoch, 22. Dezember 2010 09:29
> An: clerezza-dev@incubator.apache.org
> Betreff: Scala Page and Cookies
>
> Hi
>
> I need to write and read Cookies, while I render the  scala server page.
> Is there a posibility to retrieve the request object and the response bject 
> in scala?
>
> cheers
> oli
>
>
>
>
> --[cid:image001.png@01CBA1BA.ADAA76D0]<http://twitter.com/getunik>-[cid:image002.png@01CBA1BA.ADAA76D0]<http://www.facebook.com/pages/getunikcom/124320320041>----------------------------------------------
>
> --getunik ag-------------------------------------------
>
>  oliver straesser              
> oliver.straes...@getunik.com<mailto:oliver.straes...@getunik.com>
>  hardturmstrasse 101    fon: +41 (0)44 388 55 88
>  ch-8005 zuerich              fax: +41 (0)44 388 55 89
>
>   --aktuelles getunik projekt-------------------------
>   Agieren Sie lokal! Geo Marketing für Ihre E-Mail Kampagne: 
> www.geomarketing.com<http://www.geomarketing.com/>
>
>  --best of swiss web awards 2009------------------
>   Gold & Silber für Connect2Earth / Bronze für WWF UK
>
> we make the web a better place - www.getunik.com<http://www.getunik.com/>
>
>
>
>
> *****************************************************************
> P Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt es 
> Ihnen.
> *****************************************************************
>
>



-- 
--trialox ag--------------------------------------

Tsuyoshi Ito
Binzmuehlestrasse 14
CH-8050 Zürich
Tel. +41 44 635 75 77
URL: http://trialox.org

Reply via email to