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?
You can just put \ in front to escape the EL expression:
\${variable}
Alternatively, you can XML-escape the $:
${variable}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With