Generally speaking, when you use a struts tag and you do NOT specify
an object, the tag will default to using the object at the top of the
stack. The push tag lets you force a specific object to be at the top
of the stack, so you can write generic, reusable jsp code (like
fragments, etc.) that doesn't reference the object name directly and
instead operates only on its generic properties.

 - Aaron

On Thu, Jan 6, 2011 at 5:54 AM, maven apache <apachemav...@gmail.com> wrote:
> Hi
> I am learning the struts tag,however I can't understand why we need the
> set/push/bean tag?
> In my opinion,the views like jsp just need to pull data from the
> Actioncontext and render them. What's the advantage of pushing new data to
> context?
> I am using my phone to ask this question,so I can't express more,hope you
> guys know what I am talking about.^_^
>



-- 
Aaron Brown : aa...@thebrownproject.com

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

Reply via email to