Cool Techie
Cool Techie

Reputation: 746

s:text tag property name from request

I want to do something like this for my i18n,

<s:text name="#request.delements.get(positionId).element.i18n"></s:text>

But what get's printed is the value in the request object and not the corresponding proerty defined in the properties file.

Can this be achieved in any other way?

Regards, Ayush

Upvotes: 1

Views: 572

Answers (1)

Aleksandr M
Aleksandr M

Reputation: 24396

Use %{} notation inside <s:text> tag name attribute.

<s:text name="%{#request.delements.get(positionId).element.i18n}"></s:text>

Upvotes: 2

Related Questions