Thanks Dave and Michael. I've implemented the
UserContainer object as a means of just encapsulating
necessary info that would otherwise be in separate
sessions. I have also used the action forms
accordingly to display necessary info that would be
more natural. For pages that require the form to
Michael Jouravlev wrote:
It still is decoupled, only nested ;-) Nesting it in ActionForm you
keep its state and get it populated from request. You can do the same
for unit test: keep the state and populate.
Hmm, yeah, I suppose. I guess in this case I felt that the stuff in the
object in que
On 9/20/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev wrote:
>
> >Or... you can set Product object as nested property of an ActionForm,
> >and set ActionForm's scope to "session". The result is the same, but
> >seems more natural to me. You can render Product on JSP page, or
> >po
Michael Jouravlev wrote:
Or... you can set Product object as nested property of an ActionForm,
and set ActionForm's scope to "session". The result is the same, but
seems more natural to me. You can render Product on JSP page, or
populate it from input (Struts will do it for you).
True.
But
Or... you can set Product object as nested property of an ActionForm,
and set ActionForm's scope to "session". The result is the same, but
seems more natural to me. You can render Product on JSP page, or
populate it from input (Struts will do it for you).
Michael
On 9/20/05, Jadeler <[EMAIL PROTE
Jadeler wrote:
To better maintain all the data, I am opting not
having alot of session variables but instead maintain
one object that will contain all data needed and store
that in a session. [...]
Do you guys do something similar or any other recommendations?
I generally do something simil
To better maintain all the data, I am opting not
having alot of session variables but instead maintain
one object that will contain all data needed and store
that in a session. For example, instead of having
session.setAttribute("product", product),
session.setAttribute("web_preference", webPrefer
7 matches
Mail list logo