struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Brown <>
Subject Re: Why do we need the set/push tag?
Date Thu, 06 Jan 2011 14:26:39 GMT
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 <> 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 :

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message