My point is just having getters for an Action property should suffice for it to be accessed in the view by any tag library. Chris Pratt <[EMAIL PROTECTED]> wrote: You are correct. In that case,
is equivalent to calling request.put("someName",action.getSomeName()); in an Action that implements RequestAware. So when Display Tag processes The "someName" attribute is available when the JSP Tag Library (DisplayTag in this instance) calls pageContext.findAttribute("someName"); But you have to use the (or put the value in the request from the action) for DisplayTag to see it. (*Chris*) On Tue, Apr 8, 2008 at 3:12 PM, Raghuveer Kumarakrishnan wrote: > This doc seems to suggest that even request scoped data needs to explicitly > set using > to be used by tag libraries like jsp taglib or displaytag > > http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-displaytag-example.html > > > But for request scoped data you do not need to explicitly set it as a request > attribute,just getters on the action will do ,so a tag library like > displaytag will work out of the box > > > ... > .. > > > > where there is a getSomeName( ) method in the Struts2 Action class > > > Am I missing something or does the doc need to be updated? > > --Raghu > > > A Goal .......... Is a Dream with a Deadline > > --------------------------------- > You rock. That's why Blockbuster's offering you one month of Blockbuster > Total Access, No Cost. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] A Goal .......... Is a Dream with a Deadline --------------------------------- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.