Escape JSP EL using JSTL tags (dot character)

后端 未结 1 1298
失恋的感觉
失恋的感觉 2020-12-19 07:15

Some frameworks (Spring, Tomcat itself) add servlet request attributes that cannot be used within an EL expression by default. An example would be

javax.serv         


        
相关标签:
1条回答
  • 2020-12-19 07:38

    if you know the scope of the attribute, then you can fetch it from the appropriate implicit object, e.g.

    ${requestScope['javax.servlet.forward.context_path']}
    

    I'm not sure if there's an implicit object that checks all scopes in the way that {xxx} does, though.

    0 讨论(0)
提交回复
热议问题