Nick,

Apologies, somehow I missed your email.

Yes you are correct. I asked the same question on stack overflow and
the solution there works for my purposes.

http://stackoverflow.com/questions/13920587/struts2-messageresources-in-tiles

... It seems I have to be on tiles 2.2.2 to be able to share the
resources from struts2. Unfortunately for me, at this point it is not
possible to integrate tiles v2.2.2.

Thanks,
Ryan


On 12/20/12, Nicolas LE BAS <[email protected]> wrote:
> 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
>>>>
>>>
>>
>>
>
>

Reply via email to