JSTL c:out not showing the variable's value

后端 未结 2 1352
北恋
北恋 2021-01-22 00:40

I\'m following a tutorial about spring and I\'m supposed to set a variable in a controller in order to be printed within the jsp rendering the request. The code is as follows:

2条回答
  •  清酒与你
    2021-01-22 00:53

    This is an E xpression L anguage issue. Your ${} is not being resolved. This can happen for a number of reasons. One, and the most likely, is that your web.xml is declaring Servlet 2.3 and under. You'll have to specify 2.4+. Now, obviously, your Servlet container must also support that higher version.

提交回复
热议问题