Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 : expressons within s:property

 
Nigel King
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic