• Post Reply Bookmark Topic Watch Topic
  • New Topic

EL Escape Character?  RSS feed

 
Dale Seng
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched this forum for "escape" and "${" and didn't see anything that fit, so let me share a strange thing happened to one of my apps... maybe someone's got an idea.

I have this:


I published to one server at one point in time and it the value came
back where both EL expressions were evaluated (for instance
"mycategory\mygroup").

I published to a different server and the value came back for only the
first EL expression (for instance "mycategory${piFolder.group)")�.

So, it appears that the backslash is being treated as escape character
for EL?

Any ideas for scriptless workarounds?

--Dale--
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Escape the backslash:
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, placing a backslash in front of the ${ will escape it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!