How to escape EL dollar signs?

前端 未结 1 1928
星月不相逢
星月不相逢 2020-12-02 01:29

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 expression

相关标签:
1条回答
  • 2020-12-02 02:34

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

    \${variable}
    

    Alternatively, you can XML-escape the $:

    ${variable}
    
    0 讨论(0)
提交回复
热议问题