Re: shopping cart : creating a new context

2003-10-31 Thread gounis

i use mod_proxy too

i had the same problem with session and locale ... the only solution was 
to keep locale in cookies

i think that this is a bug but i dont know if its cocoon's or mod_proxy's

--stavros


On Fri, 31 Oct 2003, julien bloit wrote:

> Thank you Stavros,
> I had quite the same code, but i found out my problem comes from the
> connection between my apache 2 server and tomcat. The problem might come
> from the fact that I use the mod_proxy connector instead of the mod_jk,
> which is why I loose track of the sessions.
> 
> Any thoughts on this?
> 
> Regards,
> Julien
> 
> >
> > ok the files are here:
> >
> > http://wiki.osmosis.gr/Wiki.jsp?page=SimpleCart
> >
> > --stavros
> >
> >
> > On Thu, 30 Oct 2003, julien bloit wrote:
> >
> > > Do you have a sitemap and xsl example of this? I have problems for
> merging
> > > items, it seems my sitemap looses track of the session context after
> > > creating it and adding the first item to the cart.
> > >
> > > thanks
> > > Julien
> > >
> > > - Original Message - 
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 29, 2003 8:38 PM
> > > Subject: Re: shopping cart : creating a new context
> > >
> > >
> > > > i'm interesting too about this cart
> > > >
> > > > if u use setxml then you re-create the content in session's context
> > > > (correct me if i'm wring)
> > > >
> > > > so that we need is a mechanism tha wil determine if the "shoping-cart"
> > > > exist if not will create it (setxml) otherwhise will just add items
> > > > (mergexml) is it possible inside xslt? or the solution is an action?
> > > >
> > > > i have work on your example an i have a shoping-cart where i can
> add-item
> > > > (for first time) so the cart is created and then merge more items
> > > > but i have 2 different .xsl and to differen urls to call
> > > > /add-cart/
> > > > /mrg-cart/
> > > >
> > > > -- stavros
> > > >
> > > >
> > > >
> > > > On Wed, 29 Oct 2003, Matthew Langham wrote:
> > > >
> > > > > If you store the "goods" in the "cart" - why don't you just then add
> > > > > and remove items as needed using setxml and removexml. There is no
> need
> > > > > to copy the cart each time - it just stays in the session context.
> > > > >
> > > > > Matthew
> > > > >
> > > > >
> > > > > On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> > > > >
> > > > > > That's right.
> > > > > > In fact, I try to solve one problem after the other, doing little
> > > > > > steps, I
> > > > > > first tried to work out the basic fonctionnality. Now that I got
> it
> > > > > > working,
> > > > > > I'm working on the issue you just mentionned. I think maybe an xsl
> > > > > > stylesheet mixed with the  tag could do the
> trick. I
> > > > > > have
> > > > > > no results yet (started working on it a few minutes ago).
> > > > > >
> > > > > > The global algorithm for adding would be something like :
> > > > > >
> > > > > > - copy actual cart (using "xsl:copy-of")
> > > > > > - select item list (xpath)
> > > > > > - merge new item to the list.
> > > > > >
> > > > > > Your thoughts/help are very welcome!
> > > > > >
> > > > > > Julien
> > > > > >
> > > > > >
> > > > > > - Original Message -
> > > > > > From: <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > > > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > > > > > Sent: Wednesday, October 29, 2003 6:15 PM
> > > > > > Subject: RE: shopping cart : creating a new context
> > > > > >
> > > > > >
> > > > > >>
> > > > > >> hi julien
> > > > > >>
> > > > > >> i like very much your very clean sh

Re: shopping cart : creating a new context

2003-10-31 Thread julien bloit
Thank you Stavros,
I had quite the same code, but i found out my problem comes from the
connection between my apache 2 server and tomcat. The problem might come
from the fact that I use the mod_proxy connector instead of the mod_jk,
which is why I loose track of the sessions.

Any thoughts on this?

Regards,
Julien

>
> ok the files are here:
>
> http://wiki.osmosis.gr/Wiki.jsp?page=SimpleCart
>
> --stavros
>
>
> On Thu, 30 Oct 2003, julien bloit wrote:
>
> > Do you have a sitemap and xsl example of this? I have problems for
merging
> > items, it seems my sitemap looses track of the session context after
> > creating it and adding the first item to the cart.
> >
> > thanks
> > Julien
> >
> > - Original Message - 
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 8:38 PM
> > Subject: Re: shopping cart : creating a new context
> >
> >
> > > i'm interesting too about this cart
> > >
> > > if u use setxml then you re-create the content in session's context
> > > (correct me if i'm wring)
> > >
> > > so that we need is a mechanism tha wil determine if the "shoping-cart"
> > > exist if not will create it (setxml) otherwhise will just add items
> > > (mergexml) is it possible inside xslt? or the solution is an action?
> > >
> > > i have work on your example an i have a shoping-cart where i can
add-item
> > > (for first time) so the cart is created and then merge more items
> > > but i have 2 different .xsl and to differen urls to call
> > > /add-cart/
> > > /mrg-cart/
> > >
> > > -- stavros
> > >
> > >
> > >
> > > On Wed, 29 Oct 2003, Matthew Langham wrote:
> > >
> > > > If you store the "goods" in the "cart" - why don't you just then add
> > > > and remove items as needed using setxml and removexml. There is no
need
> > > > to copy the cart each time - it just stays in the session context.
> > > >
> > > > Matthew
> > > >
> > > >
> > > > On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> > > >
> > > > > That's right.
> > > > > In fact, I try to solve one problem after the other, doing little
> > > > > steps, I
> > > > > first tried to work out the basic fonctionnality. Now that I got
it
> > > > > working,
> > > > > I'm working on the issue you just mentionned. I think maybe an xsl
> > > > > stylesheet mixed with the  tag could do the
trick. I
> > > > > have
> > > > > no results yet (started working on it a few minutes ago).
> > > > >
> > > > > The global algorithm for adding would be something like :
> > > > >
> > > > > - copy actual cart (using "xsl:copy-of")
> > > > > - select item list (xpath)
> > > > > - merge new item to the list.
> > > > >
> > > > > Your thoughts/help are very welcome!
> > > > >
> > > > > Julien
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > > > > Sent: Wednesday, October 29, 2003 6:15 PM
> > > > > Subject: RE: shopping cart : creating a new context
> > > > >
> > > > >
> > > > >>
> > > > >> hi julien
> > > > >>
> > > > >> i like very much your very clean shoping-cart approach
> > > > >>
> > > > >> and i consider to replace a javascripr based simple shoping cart
with
> > > > >> something like yours but
> > > > >>
> > > > >> as i see you set your cart (in session) at once, you are not able
to
> > > > >> add
> > > > >> or remove items thats right or is something i missed?
> > > > >>
> > > > >> thnx in adv
> > > > >>
> > > > >> --stavros
> > > > >>
> > > > >>
> > > > >>
> > > >
>> -
> > > > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > >
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: shopping cart : creating a new context

2003-10-30 Thread gounis

ok the files are here:

http://wiki.osmosis.gr/Wiki.jsp?page=SimpleCart

--stavros


On Thu, 30 Oct 2003, julien bloit wrote:

> Do you have a sitemap and xsl example of this? I have problems for merging
> items, it seems my sitemap looses track of the session context after
> creating it and adding the first item to the cart.
> 
> thanks
> Julien
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 29, 2003 8:38 PM
> Subject: Re: shopping cart : creating a new context
> 
> 
> > i'm interesting too about this cart
> >
> > if u use setxml then you re-create the content in session's context
> > (correct me if i'm wring)
> >
> > so that we need is a mechanism tha wil determine if the "shoping-cart"
> > exist if not will create it (setxml) otherwhise will just add items
> > (mergexml) is it possible inside xslt? or the solution is an action?
> >
> > i have work on your example an i have a shoping-cart where i can add-item
> > (for first time) so the cart is created and then merge more items
> > but i have 2 different .xsl and to differen urls to call
> > /add-cart/
> > /mrg-cart/
> >
> > -- stavros
> >
> >
> >
> > On Wed, 29 Oct 2003, Matthew Langham wrote:
> >
> > > If you store the "goods" in the "cart" - why don't you just then add
> > > and remove items as needed using setxml and removexml. There is no need
> > > to copy the cart each time - it just stays in the session context.
> > >
> > > Matthew
> > >
> > >
> > > On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> > >
> > > > That's right.
> > > > In fact, I try to solve one problem after the other, doing little
> > > > steps, I
> > > > first tried to work out the basic fonctionnality. Now that I got it
> > > > working,
> > > > I'm working on the issue you just mentionned. I think maybe an xsl
> > > > stylesheet mixed with the  tag could do the trick. I
> > > > have
> > > > no results yet (started working on it a few minutes ago).
> > > >
> > > > The global algorithm for adding would be something like :
> > > >
> > > > - copy actual cart (using "xsl:copy-of")
> > > > - select item list (xpath)
> > > > - merge new item to the list.
> > > >
> > > > Your thoughts/help are very welcome!
> > > >
> > > > Julien
> > > >
> > > >
> > > > - Original Message -
> > > > From: <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, October 29, 2003 6:15 PM
> > > > Subject: RE: shopping cart : creating a new context
> > > >
> > > >
> > > >>
> > > >> hi julien
> > > >>
> > > >> i like very much your very clean shoping-cart approach
> > > >>
> > > >> and i consider to replace a javascripr based simple shoping cart with
> > > >> something like yours but
> > > >>
> > > >> as i see you set your cart (in session) at once, you are not able to
> > > >> add
> > > >> or remove items thats right or is something i missed?
> > > >>
> > > >> thnx in adv
> > > >>
> > > >> --stavros
> > > >>
> > > >>
> > > >>
> > > >> -
> > > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > >>
> > > >>
> > > >
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: shopping cart : creating a new context

2003-10-30 Thread julien bloit
Do you have a sitemap and xsl example of this? I have problems for merging
items, it seems my sitemap looses track of the session context after
creating it and adding the first item to the cart.

thanks
Julien

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 8:38 PM
Subject: Re: shopping cart : creating a new context


> i'm interesting too about this cart
>
> if u use setxml then you re-create the content in session's context
> (correct me if i'm wring)
>
> so that we need is a mechanism tha wil determine if the "shoping-cart"
> exist if not will create it (setxml) otherwhise will just add items
> (mergexml) is it possible inside xslt? or the solution is an action?
>
> i have work on your example an i have a shoping-cart where i can add-item
> (for first time) so the cart is created and then merge more items
> but i have 2 different .xsl and to differen urls to call
> /add-cart/
> /mrg-cart/
>
> -- stavros
>
>
>
> On Wed, 29 Oct 2003, Matthew Langham wrote:
>
> > If you store the "goods" in the "cart" - why don't you just then add
> > and remove items as needed using setxml and removexml. There is no need
> > to copy the cart each time - it just stays in the session context.
> >
> > Matthew
> >
> >
> > On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> >
> > > That's right.
> > > In fact, I try to solve one problem after the other, doing little
> > > steps, I
> > > first tried to work out the basic fonctionnality. Now that I got it
> > > working,
> > > I'm working on the issue you just mentionned. I think maybe an xsl
> > > stylesheet mixed with the  tag could do the trick. I
> > > have
> > > no results yet (started working on it a few minutes ago).
> > >
> > > The global algorithm for adding would be something like :
> > >
> > > - copy actual cart (using "xsl:copy-of")
> > > - select item list (xpath)
> > > - merge new item to the list.
> > >
> > > Your thoughts/help are very welcome!
> > >
> > > Julien
> > >
> > >
> > > - Original Message -
> > > From: <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 29, 2003 6:15 PM
> > > Subject: RE: shopping cart : creating a new context
> > >
> > >
> > >>
> > >> hi julien
> > >>
> > >> i like very much your very clean shoping-cart approach
> > >>
> > >> and i consider to replace a javascripr based simple shoping cart with
> > >> something like yours but
> > >>
> > >> as i see you set your cart (in session) at once, you are not able to
> > >> add
> > >> or remove items thats right or is something i missed?
> > >>
> > >> thnx in adv
> > >>
> > >> --stavros
> > >>
> > >>
> > >>
> > >> -
> > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > >>
> > >>
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: shopping cart : creating a new context

2003-10-30 Thread Peter Dietz
Hi Julien,

it seems to me that for your purpose the session transformer is the
better solution. As far as I understand you can not use the logicsheet
to store and manipulate xml trees, but I´m not sure. After all I only
just
startet using Cocoon, so much of what I say is based on wild guessing
:-)
But if your need is only to store and access name-value pairs (as it is
for me) the logicsheet works fine.

So long,
Peter


-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED] 
Sent: Donnerstag, 30. Oktober 2003 10:18
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Hi Peter,
In the xsp-session logicsheet, I only found tags for setting new
attributes
to the session, and I'm not exactly sure ( i might be wrong ) that this
is
the same as a context. I want to store a very simple xml tree to store
the
user's shopping cart. I haven't been able to store an xml tree as an
session
attribute, by using the  tag. The answer to
this
might be very simple, I don't know. Do you?

Cheers,
Julien
- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 9:32 AM
Subject: RE: shopping cart : creating a new context


Hi Julien,

only saw your post today and followed the thread afterwards.
My approach seems to work the same way. I´m also able to create
a context without any user identification process, add and
retrieve values etc. Only I´m using the Session Logicsheet.

TO ANYBODY OUT THERE WHO KNOWS:
Is there a preferable way of session tracking? Session Logicsheet
or Session Transformer?

Cheers,
Peter



-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 29. Oktober 2003 13:04
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Thanks Peter,
Before I dig into the problem a little more, can you tell me if you were
able to create a session context without any user identification
process?

thanks for your help
Julien

- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:00 PM
Subject: RE: shopping cart : creating a new context


> Hi,
>
> I also had problems creating and accessing session contexts. I solved
> them using the "session logicsheet". You can find the doc here
> http://cocoon.apache.org/2.1/userdocs/xsp/session.html
>
> Have fun,
> Peter
>
> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Oktober 2003 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
> Alright, I'll try it.
> What do you mean by "experimental"? It's not wise to implement it in a
> production project for the moment ?
>
> - Original Message ----- 
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:22 PM
> Subject: Re: shopping cart : creating a new context
>
>
>
> On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
>
> > Hi all,
> >
> > I want to implement a rather classical type of webapp where the user
> > browses a catalog, adds items to its shopping cart, and logs in or
> > registers when he's ready to buy the items from his cart.
> >
> > I browsed through the mailing list archive and it seems I could
> > proceed using the session transformer.
> >
> > Here's a snippet of my sitemap :
> >
> >
>
> 
>
>
> >
> > Aside from knowing where the error might come from, I'd like to know
> > if this seems a correct way to proceed to store user data while he's
> > not logged yet.
> >
>
> If you want to see another (experimental) approach, look at the
> PetStore Sample. It uses flow script to achieve this functionality. At
> the moment I'm implementing the missing parts of the sample, using
> woody as form framework. Expect a patch in the next days.
>
> /leo
>
>
>
> > many many thanks for your thoughts!
> > Cheers,
> > Julien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Re: shopping cart : creating a new context

2003-10-30 Thread julien bloit
Hi Peter,
In the xsp-session logicsheet, I only found tags for setting new attributes
to the session, and I'm not exactly sure ( i might be wrong ) that this is
the same as a context. I want to store a very simple xml tree to store the
user's shopping cart. I haven't been able to store an xml tree as an session
attribute, by using the  tag. The answer to this
might be very simple, I don't know. Do you?

Cheers,
Julien
- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 9:32 AM
Subject: RE: shopping cart : creating a new context


Hi Julien,

only saw your post today and followed the thread afterwards.
My approach seems to work the same way. I´m also able to create
a context without any user identification process, add and
retrieve values etc. Only I´m using the Session Logicsheet.

TO ANYBODY OUT THERE WHO KNOWS:
Is there a preferable way of session tracking? Session Logicsheet
or Session Transformer?

Cheers,
Peter



-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 29. Oktober 2003 13:04
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Thanks Peter,
Before I dig into the problem a little more, can you tell me if you were
able to create a session context without any user identification
process?

thanks for your help
Julien

- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:00 PM
Subject: RE: shopping cart : creating a new context


> Hi,
>
> I also had problems creating and accessing session contexts. I solved
> them using the "session logicsheet". You can find the doc here
> http://cocoon.apache.org/2.1/userdocs/xsp/session.html
>
> Have fun,
> Peter
>
> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Oktober 2003 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
> Alright, I'll try it.
> What do you mean by "experimental"? It's not wise to implement it in a
> production project for the moment ?
>
> - Original Message ----- 
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:22 PM
> Subject: Re: shopping cart : creating a new context
>
>
>
> On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
>
> > Hi all,
> >
> > I want to implement a rather classical type of webapp where the user
> > browses a catalog, adds items to its shopping cart, and logs in or
> > registers when he's ready to buy the items from his cart.
> >
> > I browsed through the mailing list archive and it seems I could
> > proceed using the session transformer.
> >
> > Here's a snippet of my sitemap :
> >
> >
>
> 
>
>
> >
> > Aside from knowing where the error might come from, I'd like to know
> > if this seems a correct way to proceed to store user data while he's
> > not logged yet.
> >
>
> If you want to see another (experimental) approach, look at the
> PetStore Sample. It uses flow script to achieve this functionality. At
> the moment I'm implementing the missing parts of the sample, using
> woody as form framework. Expect a patch in the next days.
>
> /leo
>
>
>
> > many many thanks for your thoughts!
> > Cheers,
> > Julien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



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



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



RE: shopping cart : creating a new context

2003-10-30 Thread Peter Dietz
Hi Julien,

only saw your post today and followed the thread afterwards.
My approach seems to work the same way. I´m also able to create
a context without any user identification process, add and 
retrieve values etc. Only I´m using the Session Logicsheet.

TO ANYBODY OUT THERE WHO KNOWS:
Is there a preferable way of session tracking? Session Logicsheet
or Session Transformer?

Cheers,
Peter



-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 29. Oktober 2003 13:04
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Thanks Peter,
Before I dig into the problem a little more, can you tell me if you were
able to create a session context without any user identification
process?

thanks for your help
Julien

- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:00 PM
Subject: RE: shopping cart : creating a new context


> Hi,
>
> I also had problems creating and accessing session contexts. I solved
> them using the "session logicsheet". You can find the doc here
> http://cocoon.apache.org/2.1/userdocs/xsp/session.html
>
> Have fun,
> Peter
>
> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Oktober 2003 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
> Alright, I'll try it.
> What do you mean by "experimental"? It's not wise to implement it in a
> production project for the moment ?
>
> - Original Message - 
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:22 PM
> Subject: Re: shopping cart : creating a new context
>
>
>
> On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
>
> > Hi all,
> >
> > I want to implement a rather classical type of webapp where the user
> > browses a catalog, adds items to its shopping cart, and logs in or
> > registers when he's ready to buy the items from his cart.
> >
> > I browsed through the mailing list archive and it seems I could
> > proceed using the session transformer.
> >
> > Here's a snippet of my sitemap :
> >
> >
>
> 
>
>
> >
> > Aside from knowing where the error might come from, I'd like to know
> > if this seems a correct way to proceed to store user data while he's
> > not logged yet.
> >
>
> If you want to see another (experimental) approach, look at the
> PetStore Sample. It uses flow script to achieve this functionality. At
> the moment I'm implementing the missing parts of the sample, using
> woody as form framework. Expect a patch in the next days.
>
> /leo
>
>
>
> > many many thanks for your thoughts!
> > Cheers,
> > Julien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



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



Re: shopping cart : creating a new context

2003-10-29 Thread gounis
i'm interesting too about this cart

if u use setxml then you re-create the content in session's context
(correct me if i'm wring)

so that we need is a mechanism tha wil determine if the "shoping-cart" 
exist if not will create it (setxml) otherwhise will just add items 
(mergexml) is it possible inside xslt? or the solution is an action?

i have work on your example an i have a shoping-cart where i can add-item 
(for first time) so the cart is created and then merge more items
but i have 2 different .xsl and to differen urls to call
/add-cart/
/mrg-cart/

-- stavros



On Wed, 29 Oct 2003, Matthew Langham wrote:

> If you store the "goods" in the "cart" - why don't you just then add 
> and remove items as needed using setxml and removexml. There is no need 
> to copy the cart each time - it just stays in the session context.
> 
> Matthew
> 
> 
> On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:
> 
> > That's right.
> > In fact, I try to solve one problem after the other, doing little 
> > steps, I
> > first tried to work out the basic fonctionnality. Now that I got it 
> > working,
> > I'm working on the issue you just mentionned. I think maybe an xsl
> > stylesheet mixed with the  tag could do the trick. I 
> > have
> > no results yet (started working on it a few minutes ago).
> >
> > The global algorithm for adding would be something like :
> >
> > - copy actual cart (using "xsl:copy-of")
> > - select item list (xpath)
> > - merge new item to the list.
> >
> > Your thoughts/help are very welcome!
> >
> > Julien
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Cc: "julien bloit" <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 6:15 PM
> > Subject: RE: shopping cart : creating a new context
> >
> >
> >>
> >> hi julien
> >>
> >> i like very much your very clean shoping-cart approach
> >>
> >> and i consider to replace a javascripr based simple shoping cart with
> >> something like yours but
> >>
> >> as i see you set your cart (in session) at once, you are not able to 
> >> add
> >> or remove items thats right or is something i missed?
> >>
> >> thnx in adv
> >>
> >> --stavros
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
If you store the "goods" in the "cart" - why don't you just then add 
and remove items as needed using setxml and removexml. There is no need 
to copy the cart each time - it just stays in the session context.

Matthew

On Mittwoch, Oktober 29, 2003, at 06:38 PM, julien bloit wrote:

That's right.
In fact, I try to solve one problem after the other, doing little 
steps, I
first tried to work out the basic fonctionnality. Now that I got it 
working,
I'm working on the issue you just mentionned. I think maybe an xsl
stylesheet mixed with the  tag could do the trick. I 
have
no results yet (started working on it a few minutes ago).

The global algorithm for adding would be something like :

- copy actual cart (using "xsl:copy-of")
- select item list (xpath)
- merge new item to the list.
Your thoughts/help are very welcome!

Julien

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: "julien bloit" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 6:15 PM
Subject: RE: shopping cart : creating a new context

hi julien

i like very much your very clean shoping-cart approach

and i consider to replace a javascripr based simple shoping cart with
something like yours but
as i see you set your cart (in session) at once, you are not able to 
add
or remove items thats right or is something i missed?

thnx in adv

--stavros



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



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


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


Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
That's right.
In fact, I try to solve one problem after the other, doing little steps, I
first tried to work out the basic fonctionnality. Now that I got it working,
I'm working on the issue you just mentionned. I think maybe an xsl
stylesheet mixed with the  tag could do the trick. I have
no results yet (started working on it a few minutes ago).

The global algorithm for adding would be something like :

- copy actual cart (using "xsl:copy-of")
- select item list (xpath)
- merge new item to the list.

Your thoughts/help are very welcome!

Julien


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Cc: "julien bloit" <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 6:15 PM
Subject: RE: shopping cart : creating a new context


>
> hi julien
>
> i like very much your very clean shoping-cart approach
>
> and i consider to replace a javascripr based simple shoping cart with
> something like yours but
>
> as i see you set your cart (in session) at once, you are not able to add
> or remove items thats right or is something i missed?
>
> thnx in adv
>
> --stavros
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: shopping cart : creating a new context

2003-10-29 Thread gounis

hi julien

i like very much your very clean shoping-cart approach

and i consider to replace a javascripr based simple shoping cart with 
something like yours but 

as i see you set your cart (in session) at once, you are not able to add 
or remove items thats right or is something i missed?

thnx in adv

--stavros
 


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



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Thank you, that was the answer to my problem.

- Original Message - 
From: "Matthew Langham" <[EMAIL PROTECTED]>
To: "julien bloit" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 4:21 PM
Subject: RE: shopping cart : creating a new context


> > http://cocoon.apache.org/session/1.0";>
>
> The namespace should read: http://apache.org/cocoon/session/1.0
>
> See also this post:
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106674388619634&w=2
>
> Matthew
>
>
> > -Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 29, 2003 4:02 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> >
> > Ok, the session creation seems to work with the session action,
> > however, it
> > seems I can't get the session transformer to work in my pipeline :
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > where new_panier.xml is :
> >
> > 
> >  http://cocoon.apache.org/session/1.0";>
> >
> >
> >
> >first item
> >second item
> >
> >
> >   
> > 
> >
> > I always get the following output (obviously, no transformation
> > happening...) :
> >
> > 
> > http://cocoon.apache.org/session/1.0";>
> >
> >
> >
> >first item
> >second item
> >
> >
> >   
> > 
> >
> > What am I missing ?? feel like a dummy...
> >
> > > Hi Julien,
> > >
> > > I missed the beginning of this thread (just read it in the archive).
> > Before
> > > creating a context to store data in you must create a session for the
> > user.
> > > Check this page for details on the Session action:
> > > http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
> > >
> > > You don't need any authentication for this.
> > >
> > > HTH
> > >
> > > Matthew
> > >
> > > > -Original Message-
> > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > Sent: Wednesday, October 29, 2003 1:04 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > >
> > > > Thanks Peter,
> > > > Before I dig into the problem a little more, can you tell me
> > if you were
> > > > able to create a session context without any user identification
> > process?
> > > >
> > > > thanks for your help
> > > > Julien
> > > >
> > > > ----- Original Message -
> > > > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, October 29, 2003 1:00 PM
> > > > Subject: RE: shopping cart : creating a new context
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > I also had problems creating and accessing session
> > contexts. I solved
> > > > > them using the "session logicsheet". You can find the doc here
> > > > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > > > >
> > > > > Have fun,
> > > > > Peter
> > > > >
> > > > > -Original Message-
> > > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Re: shopping cart : creating a new context
> > > > >
> > > > > Alright, I'll try it.
> > > > > What do you mean by "experimental"? It's not wise to
> > implement it in a
> > > > > production project for the moment ?
> > > > >
> > > > > - Original Message -
> > > > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > > > Subject: Re: shopping cart : creating a new context
> > > > >
> > > > 

RE: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
> http://cocoon.apache.org/session/1.0";>

The namespace should read: http://apache.org/cocoon/session/1.0

See also this post:
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106674388619634&w=2

Matthew


> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 4:02 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
>
> Ok, the session creation seems to work with the session action,
> however, it
> seems I can't get the session transformer to work in my pipeline :
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> where new_panier.xml is :
>
> 
>  http://cocoon.apache.org/session/1.0";>
>
>
>
>first item
>second item
>
>
>   
> 
>
> I always get the following output (obviously, no transformation
> happening...) :
>
> 
> http://cocoon.apache.org/session/1.0";>
>
>
>
>first item
>second item
>
>
>   
> 
>
> What am I missing ?? feel like a dummy...
>
> > Hi Julien,
> >
> > I missed the beginning of this thread (just read it in the archive).
> Before
> > creating a context to store data in you must create a session for the
> user.
> > Check this page for details on the Session action:
> > http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
> >
> > You don't need any authentication for this.
> >
> > HTH
> >
> > Matthew
> >
> > > -Original Message-
> > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, October 29, 2003 1:04 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: shopping cart : creating a new context
> > >
> > >
> > > Thanks Peter,
> > > Before I dig into the problem a little more, can you tell me
> if you were
> > > able to create a session context without any user identification
> process?
> > >
> > > thanks for your help
> > > Julien
> > >
> > > - Original Message -
> > > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 29, 2003 1:00 PM
> > > Subject: RE: shopping cart : creating a new context
> > >
> > >
> > > > Hi,
> > > >
> > > > I also had problems creating and accessing session
> contexts. I solved
> > > > them using the "session logicsheet". You can find the doc here
> > > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > > >
> > > > Have fun,
> > > > Peter
> > > >
> > > > -Original Message-
> > > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > > Alright, I'll try it.
> > > > What do you mean by "experimental"? It's not wise to
> implement it in a
> > > > production project for the moment ?
> > > >
> > > > - Original Message -
> > > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > > Subject: Re: shopping cart : creating a new context
> > > >
> > > >
> > > >
> > > > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > I want to implement a rather classical type of webapp
> where the user
> > > > > browses a catalog, adds items to its shopping cart, and logs in or
> > > > > registers when he's ready to buy the items from his cart.
> > > > >
> > > > > I browsed through the mailing list archive and it seems I could
> > > > > proceed using the session transformer.
> > > > >
> > > > > Here's a snippet of my sitemap :
> > > > >
> > > > >
> > > >
> > > > 
> > > >
> > > >
> > > > >
> > > > > Aside from knowing where the error might come from, I'd
> lik

Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Ok, the session creation seems to work with the session action, however, it
seems I can't get the session transformer to work in my pipeline :










where new_panier.xml is :


 http://cocoon.apache.org/session/1.0";>
   
   
   
   first item
   second item
   
   
  


I always get the following output (obviously, no transformation
happening...) :


http://cocoon.apache.org/session/1.0";>
   
   
   
   first item
   second item
   
   
  


What am I missing ?? feel like a dummy...

> Hi Julien,
>
> I missed the beginning of this thread (just read it in the archive).
Before
> creating a context to store data in you must create a session for the
user.
> Check this page for details on the Session action:
> http://cocoon.apache.org/2.1/userdocs/actions/session-action.html
>
> You don't need any authentication for this.
>
> HTH
>
> Matthew
>
> > -Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, October 29, 2003 1:04 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> >
> > Thanks Peter,
> > Before I dig into the problem a little more, can you tell me if you were
> > able to create a session context without any user identification
process?
> >
> > thanks for your help
> > Julien
> >
> > - Original Message -----
> > From: "Peter Dietz" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, October 29, 2003 1:00 PM
> > Subject: RE: shopping cart : creating a new context
> >
> >
> > > Hi,
> > >
> > > I also had problems creating and accessing session contexts. I solved
> > > them using the "session logicsheet". You can find the doc here
> > > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> > >
> > > Have fun,
> > > Peter
> > >
> > > -Original Message-
> > > From: julien bloit [mailto:[EMAIL PROTECTED]
> > > Sent: Mittwoch, 29. Oktober 2003 11:59
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: shopping cart : creating a new context
> > >
> > > Alright, I'll try it.
> > > What do you mean by "experimental"? It's not wise to implement it in a
> > > production project for the moment ?
> > >
> > > - Original Message -
> > > From: "leo leonid" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 28, 2003 10:22 PM
> > > Subject: Re: shopping cart : creating a new context
> > >
> > >
> > >
> > > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> > >
> > > > Hi all,
> > > >
> > > > I want to implement a rather classical type of webapp where the user
> > > > browses a catalog, adds items to its shopping cart, and logs in or
> > > > registers when he's ready to buy the items from his cart.
> > > >
> > > > I browsed through the mailing list archive and it seems I could
> > > > proceed using the session transformer.
> > > >
> > > > Here's a snippet of my sitemap :
> > > >
> > > >
> > >
> > > 
> > >
> > >
> > > >
> > > > Aside from knowing where the error might come from, I'd like to know
> > > > if this seems a correct way to proceed to store user data while he's
> > > > not logged yet.
> > > >
> > >
> > > If you want to see another (experimental) approach, look at the
> > > PetStore Sample. It uses flow script to achieve this functionality. At
> > > the moment I'm implementing the missing parts of the sample, using
> > > woody as form framework. Expect a patch in the next days.
> > >
> > > /leo
> > >
> > >
> > >
> > > > many many thanks for your thoughts!
> > > > Cheers,
> > > > Julien
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: shopping cart : creating a new context

2003-10-29 Thread Matthew Langham
Hi Julien,

I missed the beginning of this thread (just read it in the archive). Before
creating a context to store data in you must create a session for the user.
Check this page for details on the Session action:
http://cocoon.apache.org/2.1/userdocs/actions/session-action.html

You don't need any authentication for this.

HTH

Matthew

> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
>
> Thanks Peter,
> Before I dig into the problem a little more, can you tell me if you were
> able to create a session context without any user identification process?
>
> thanks for your help
> Julien
>
> - Original Message -
> From: "Peter Dietz" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 29, 2003 1:00 PM
> Subject: RE: shopping cart : creating a new context
>
>
> > Hi,
> >
> > I also had problems creating and accessing session contexts. I solved
> > them using the "session logicsheet". You can find the doc here
> > http://cocoon.apache.org/2.1/userdocs/xsp/session.html
> >
> > Have fun,
> > Peter
> >
> > -----Original Message-
> > From: julien bloit [mailto:[EMAIL PROTECTED]
> > Sent: Mittwoch, 29. Oktober 2003 11:59
> > To: [EMAIL PROTECTED]
> > Subject: Re: shopping cart : creating a new context
> >
> > Alright, I'll try it.
> > What do you mean by "experimental"? It's not wise to implement it in a
> > production project for the moment ?
> >
> > - Original Message -
> > From: "leo leonid" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, October 28, 2003 10:22 PM
> > Subject: Re: shopping cart : creating a new context
> >
> >
> >
> > On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
> >
> > > Hi all,
> > >
> > > I want to implement a rather classical type of webapp where the user
> > > browses a catalog, adds items to its shopping cart, and logs in or
> > > registers when he's ready to buy the items from his cart.
> > >
> > > I browsed through the mailing list archive and it seems I could
> > > proceed using the session transformer.
> > >
> > > Here's a snippet of my sitemap :
> > >
> > >
> >
> > 
> >
> >
> > >
> > > Aside from knowing where the error might come from, I'd like to know
> > > if this seems a correct way to proceed to store user data while he's
> > > not logged yet.
> > >
> >
> > If you want to see another (experimental) approach, look at the
> > PetStore Sample. It uses flow script to achieve this functionality. At
> > the moment I'm implementing the missing parts of the sample, using
> > woody as form framework. Expect a patch in the next days.
> >
> > /leo
> >
> >
> >
> > > many many thanks for your thoughts!
> > > Cheers,
> > > Julien
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Thanks Peter,
Before I dig into the problem a little more, can you tell me if you were
able to create a session context without any user identification process?

thanks for your help
Julien

- Original Message - 
From: "Peter Dietz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 29, 2003 1:00 PM
Subject: RE: shopping cart : creating a new context


> Hi,
>
> I also had problems creating and accessing session contexts. I solved
> them using the "session logicsheet". You can find the doc here
> http://cocoon.apache.org/2.1/userdocs/xsp/session.html
>
> Have fun,
> Peter
>
> -Original Message-
> From: julien bloit [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 29. Oktober 2003 11:59
> To: [EMAIL PROTECTED]
> Subject: Re: shopping cart : creating a new context
>
> Alright, I'll try it.
> What do you mean by "experimental"? It's not wise to implement it in a
> production project for the moment ?
>
> - Original Message - 
> From: "leo leonid" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 28, 2003 10:22 PM
> Subject: Re: shopping cart : creating a new context
>
>
>
> On Oct 28, 2003, at 4:52 PM, julien bloit wrote:
>
> > Hi all,
> >
> > I want to implement a rather classical type of webapp where the user
> > browses a catalog, adds items to its shopping cart, and logs in or
> > registers when he's ready to buy the items from his cart.
> >
> > I browsed through the mailing list archive and it seems I could
> > proceed using the session transformer.
> >
> > Here's a snippet of my sitemap :
> >
> >
>
> 
>
>
> >
> > Aside from knowing where the error might come from, I'd like to know
> > if this seems a correct way to proceed to store user data while he's
> > not logged yet.
> >
>
> If you want to see another (experimental) approach, look at the
> PetStore Sample. It uses flow script to achieve this functionality. At
> the moment I'm implementing the missing parts of the sample, using
> woody as form framework. Expect a patch in the next days.
>
> /leo
>
>
>
> > many many thanks for your thoughts!
> > Cheers,
> > Julien
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: shopping cart : creating a new context

2003-10-29 Thread Peter Dietz
Hi,

I also had problems creating and accessing session contexts. I solved
them using the "session logicsheet". You can find the doc here
http://cocoon.apache.org/2.1/userdocs/xsp/session.html

Have fun,
Peter

-Original Message-
From: julien bloit [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 29. Oktober 2003 11:59
To: [EMAIL PROTECTED]
Subject: Re: shopping cart : creating a new context

Alright, I'll try it.
What do you mean by "experimental"? It's not wise to implement it in a
production project for the moment ?

- Original Message - 
From: "leo leonid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:22 PM
Subject: Re: shopping cart : creating a new context



On Oct 28, 2003, at 4:52 PM, julien bloit wrote:

> Hi all,
>
> I want to implement a rather classical type of webapp where the user
> browses a catalog, adds items to its shopping cart, and logs in or
> registers when he's ready to buy the items from his cart.
>
> I browsed through the mailing list archive and it seems I could
> proceed using the session transformer.
>
> Here's a snippet of my sitemap :
>
>




>
> Aside from knowing where the error might come from, I'd like to know
> if this seems a correct way to proceed to store user data while he's
> not logged yet.
>

If you want to see another (experimental) approach, look at the
PetStore Sample. It uses flow script to achieve this functionality. At
the moment I'm implementing the missing parts of the sample, using
woody as form framework. Expect a patch in the next days.

/leo



> many many thanks for your thoughts!
> Cheers,
> Julien


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



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



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



Re: shopping cart : creating a new context

2003-10-29 Thread julien bloit
Alright, I'll try it.
What do you mean by "experimental"? It's not wise to implement it in a
production project for the moment ?

- Original Message - 
From: "leo leonid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 10:22 PM
Subject: Re: shopping cart : creating a new context



On Oct 28, 2003, at 4:52 PM, julien bloit wrote:

> Hi all,
>
> I want to implement a rather classical type of webapp where the user
> browses a catalog, adds items to its shopping cart, and logs in or
> registers when he's ready to buy the items from his cart.
>
> I browsed through the mailing list archive and it seems I could
> proceed using the session transformer.
>
> Here's a snippet of my sitemap :
>
>




>
> Aside from knowing where the error might come from, I'd like to know
> if this seems a correct way to proceed to store user data while he's
> not logged yet.
>

If you want to see another (experimental) approach, look at the
PetStore Sample. It uses flow script to achieve this functionality. At
the moment I'm implementing the missing parts of the sample, using
woody as form framework. Expect a patch in the next days.

/leo



> many many thanks for your thoughts!
> Cheers,
> Julien


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



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



Re: shopping cart : creating a new context

2003-10-28 Thread leo leonid
On Oct 28, 2003, at 4:52 PM, julien bloit wrote:

Hi all,
 
I want to implement a rather classical type of webapp where the user 
browses a catalog, adds items to its shopping cart, and logs in or 
registers when he's ready to buy the items from his cart.
 
I browsed through the mailing list archive and it seems I could 
proceed using the session transformer.
 
Here's a snippet of my sitemap :
 




 
Aside from knowing where the error might come from, I'd like to know 
if this seems a correct way to proceed to store user data while he's 
not logged yet.
 
If you want to see another (experimental) approach, look at the 
PetStore Sample. It uses flow script to achieve this functionality. At 
the moment I'm implementing the missing parts of the sample, using 
woody as form framework. Expect a patch in the next days.

/leo



many many thanks for your thoughts!
Cheers,
Julien


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