Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:set and target

 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I have read conflicting information on what is legal in the "target" attribute of <c:set>. Some books say that it can take runtime expressions AND string literals. For example...

<c:set target="something" property="prop" value="val"/>

...and...

<c:set target="${something}" property="prop" value="val"/>

...according to some sources are both legal.

However, I have been trying now for several hours to make <c:set> take a string literal for target and I cannot accomplish it.

My question is: Can the "target" attribute take a string literal? And if so under what circumstances?

Thanks!
John
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
JohnWilliam Fitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, that was fast. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic