aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 : expressons within s:property" Watch "Struts2 : expressons within s:property" New topic
Author

Struts2 : expressons within s:property

Nigel King
Greenhorn

Joined: Mar 03, 2006
Posts: 29
Hi,

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: 112
Hi
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: http://aspose.com/file-tools
 
subject: Struts2 : expressons within s:property
 
Similar Threads
how to retrive session object / struts
How to create object and call a method in jsp using struts 2 tags
Struts 2 iterating enums
struts 2: Stuck up with simple issue
passing values from struts2 form to javascript