On Wed, Jan 12, 2011 at 5:57 PM, Oliver Strässer < [email protected]> wrote:
> 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? > I think it would be good to make this possible. For setting cookies howver, I think the ssp is definitively the wrong place, both conceptually (presentation layer) as well implementationally (the entity body is produced after the headers). If in a weird occasion you really think you need something similar you can still set cookies via java-script. Cheers, Reto > > > oli > > > -----Ursprüngliche Nachricht----- > Von: Tsuyoshi Ito [mailto:[email protected]] > Gesendet: Donnerstag, 23. Dezember 2010 18:08 > An: [email protected] > 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 <[email protected]>: > > some ideas? > > > > Von: Oliver Strässer > > Gesendet: Mittwoch, 22. Dezember 2010 09:29 > > An: [email protected] > > 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:[email protected]]<http://twitter.com/getunik > >-[cid:[email protected]]< > http://www.facebook.com/pages/getunikcom/124320320041 > >---------------------------------------------- > > > > --getunik ag------------------------------------------- > > > > oliver straesser [email protected]<mailto: > [email protected]> > > 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 >
