tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: struts2 MessageResources in tiles
Date Mon, 17 Dec 2012 18:36:24 GMT
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 <rbeckes@gmail.com> 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
>

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