Hello all,
More newbie questions. I just want to make sure I understand the idea on
how to write a Struts application
properly.
How do you save something to the Session scope and then access it within
Struts?
I pretty much understand how to do it within a Servlet.
How do you do the same for the Context? I also know how to do it in a
Servlet.
Can a Model Class access or set anything in the Session or in the
Context space?
Say that you want to access a database based on a parameter set on the
Session?
Shall I make a getter for this model class and pass the parameter
through an Action call or
can I access the Session data from a Model Class? Then I guess my Model
Class should extend some
Struts class that would provide access to both the Session and the Context.
Are Model Classes instances unique for every Session? Or one instance is
common to everyone?
I guess I am concerned with data state here and I just want to make sure
how it works.
Thanks again!
C.F.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]