You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by tom tom <j_...@yahoo.com> on 2007/06/22 02:22:52 UTC

What exactly the scope of instance variables and Action instances

Hi,

As we dont have ActionForms seperately as in Struts
1.X.

We introduce member variables in the Action classes.

All our jsp field elements are mapped to these member
variables.

The question we have is, What exactly the life cycle
and scope of these Actions and Member variables, When
it will be released from the value stack, how long
will it be there in the value stack.

We want this to make sure the values get cleared at
the right time,


As these member variables are attached to the action
classes we cant specify the scope of the instance
variable, which we used to do with ActionForms in
Struts 1.x

Thanks,


       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: What exactly the scope of instance variables and Action instances

Posted by Dave Newton <ne...@yahoo.com>.
--- tom tom <j_...@yahoo.com> wrote:
> The question we have is, What exactly the life cycle
> and scope of these Actions and Member variables,
> When it will be released from the value stack, how 
> long will it be there in the value stack.

The following: 

http://struts.apache.org/2.x/docs/big-picture.html

may give you the information you're looking for.

d.



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org