Actually <s:text name="htmlheadHeading1"/> is not looking for htmlheadHeading1 in the servlet request; instead it is using some struts2/xwork-specific mecanism.
I'm not sure how to access struts2 messages resources without struts2-specific tags. If you find a way to do it by using EL in a JSP, the same EL should work in tiles. Hope this helps. Nick On 12-12-17 01:49 PM, Ryan Beckes wrote: > Thanks for the tip Chris! Unfortunately, I still get the same error > with that tag added. > > On 12/17/12, Chris Pratt <[email protected]> wrote: >> You might try adding: >> >> <tiles:importAttribute scope="request"/> >> >> To the top of your template source. It makes all the request scoped >> parameters available to tiles. >> (*Chris*) >> >> >> On Mon, Dec 17, 2012 at 9:13 AM, Ryan Beckes <[email protected]> wrote: >> >>> Hi All, >>> >>> I'm trying unsuccessfully to use a struts2 message resource in a tiles >>> 2.1.4 expression. For example the following resource is available in >>> the jsp... >>> >>> <s:text name="htmlheadHeading1"/><br/> >>> >>> >>> ... but when I attempt to use the same resource in the tiles >>> definition... >>> >>> <put-attribute name="title" expression="${htmlheadHeading1}" /> >>> >>> ... I get the error... >>> >>> ELResolver cannot handle a null base Object with identifier >>> 'htmlheadHeading1' >>> >>> >>> ... Is there any way to do this?? >>> >>> Thanks, >>> Ryan >>> >> > >
