Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts2 : expressons within s:property  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!