Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread Simon MARTIN
Hi, I'm currently writing a short Struts application without a database (I know that this would be better, but as it is only for teaching purposes, I don't want to 'overflow' my audience with databases and ORM). It should be a small online sales system -- I've got ShoppingItems, ShoppingUsers (w

Best practice question: Properties (ShoppingCart) per user

2004-12-11 Thread Simon MARTIN
Hi, I'm currently writing a short Struts application without a database (I know that this would be better, but as it is only for teaching purposes, I don't want to 'overflow' my audience with databases and ORM). It should be a small online sales system -- I've got ShoppingItems, ShoppingUsers (whi

RE: Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread Jim Barrows
> -Original Message- > From: Simon MARTIN [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 07, 2004 11:47 AM > To: [EMAIL PROTECTED] > Subject: Best practice question: Properties (ShoppingCart) per user > > > Hi, > > I'm currently writing a

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread Bill Siggelkow
Simon, Actions should not hold client-state; instead, you can create a ShoppingCart in the Action but then save it in the HttpSession. Without going into to many details, I suggest you take a look at the Struts MailReader example distributed with Struts. -Bill Siggelkow Simon MARTIN wrote: Hi,

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-07 Thread fzlists
PLEASE do not take offense from what I am about to say. I do not mean to be anything but constructive and helpful... I am concerned that you are trying to build an example for those you will be teaching because I can see some fundamental misunderstandings, or gaps in your knowledge. I'd be wi

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-08 Thread Simon MARTIN
Hi, thanks for your offering of help. I know that my Struts knowlegde is not the best yet -- no question about it -- but I'm willing to change that, as far as my time allows it. Fortunately, my lecture is not of that importance you might have assumed, as I'm 'only' giving a presentation at schoo

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-08 Thread Frank W. Zammetti
Sounds good! You'll find that the people here are extremely helpful, but they do tend to shy away from general questions (unless they are SO general as to be theoretical, in which case EVERYONE has an opinion :) ), so the more specific a question you can ask, the better. As for books to read,

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-09 Thread Michael Klaene
Though I've used Struts quite a bit in the past, I found this freely downloadable book a very good source of '101' Struts information: http://www.theserverside.com/books/sourcebeat/JakartaStrutsLive/index.tss Mike "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote: Sounds good! You'll find that t

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-09 Thread bmf5
> For Struts, O'Reilly has a pretty good book, the title of which elludes me at the moment, Programming Jakarta Struts 2nd ed - Chuck Cavaness Stuts The Complete Reference - James Holmes was the first Struts book I read and was very helpful. Each chapter gave a good overview before getting i

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-09 Thread Laconia Data Systems
" <[EMAIL PROTECTED]> Sent: Thursday, December 09, 2004 10:21 AM Subject: Re: Best practice question: Properties (ShoppingCart) per user > > > > > > For Struts, O'Reilly has a pretty good book, the title of which elludes > me at the moment, > > Prog

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-09 Thread henrik . bentel
el "Laconia Data Systems" <[EMAIL PROTECTED]> 12/09/04 09:31 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Re: Best practice question: Properties

RE: Best practice question: Properties (ShoppingCart) per user

2004-12-11 Thread David G. Friedman
PROTECTED] Subject: Best practice question: Properties (ShoppingCart) per user Hi, I'm currently writing a short Struts application without a database (I know that this would be better, but as it is only for teaching purposes, I don't want to 'overflow' my audience with databases

Re: Best practice question: Properties (ShoppingCart) per user

2004-12-11 Thread Frank W. Zammetti
You asked this same question last week... I'll try and give you some specific answers this time... (1) You have a class member (shoppingCartManager) in your Action. This is bad. Here's a direct quote from the Struts User's Guide: "The controller servlet creates only one instance of your Actio