15

I wish to write JSP which generates XML file, which has syntax, similiar to XML with EL expressions. In other words, I wish to let JSP to process only my expressions, but leave foreign expressions intact.

Is it possible to escape the EL like ${variable} so that it get displayed as is?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Dims
  • 47,675
  • 117
  • 331
  • 600

1 Answers1

28

You can just put \ in front to escape the EL expression:

\${variable}

Alternatively, you can XML-escape the $:

${variable}
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555