Tim Slattery wrote:
It's in a JSP page. The expressions are EL.
Would it kill you to show actual code? How are we supposed to know
where the quote marks are, what sorts of tags, if any, surround these
expressions, and all that stuff that is relevant to backslash
escaping?
In any event, I'm guessing you need to double the backslashes:
<c:howItShouldBeDone value="${bean.firstval}\\\\${bean.secondval}" />
That doesn't work.
As I said, its a JSP page. I'm using EL expressions, I want to display
one, followed by a backslash (\) followed by another. No spaces.
Here's an example: ListBean is a bean that's accessible from the JSP
page, values from it are used elsewhere on the page.
When the "env" property is "D", this line:
${ListBean.env}\\\\${ListBean.database}\\\\${ListBean.table}<br/>
yields
D\\\${ListBean.database}\\\${ListBean.table}
expressions.