struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maven apache <apachemav...@gmail.com>
Subject Re: Why do we need the set/push tag?
Date Thu, 06 Jan 2011 14:41:35 GMT
2011/1/6 Aaron Brown <aaron@thebrownproject.com>

> 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,


Well,is it the action's **responsibility to prepare the data which to be
used in the view/page?

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 <apachemaven0@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 : aaron@thebrownproject.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message