File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts2 : expressons within s:property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 : expressons within s:property" Watch "Struts2 : expressons within s:property" New topic

Struts2 : expressons within s:property

Nigel King

Joined: Mar 03, 2006
Posts: 29

I have several text fields stored in my session : text_1, text_2, text_3, etc.
I can access them using

It would be useful for me to be able to do something like

but I can't figure out the relevant combination of %, #, and {} to achieve that.
Any ideas?
Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 115
I have a similar kind of problem where I am trying the following code

<s:i18n name='${resourceBundle}'>

But it throws an exception
According to TLD or attribute directive in tag file, attribute name does not accept any expressions
. If you have any idea on this please let me know.

Regards, Fawad Ali.
Software Engineer, Stafona Inc. - My Blog
I agree. Here's the link:
subject: Struts2 : expressons within s:property
It's not a secret anymore!