JSPs not displaying objects from model in Spring

后端 未结 3 2134
太阳男子
太阳男子 2020-12-07 01:42

I have what should be an easy issue to solve, but I\'m having no luck.

In my servlet-servlet.xml file, I have the following beans (in addition to others):

         


        
3条回答
  •  天涯浪人
    2020-12-07 02:12

    Are you sure that evaluation of EL is enabled in your JSP? I sometimes had the problem, that it got turned of somehow. Try evaluating a simple expression like ${'test'} and see if 'test' appears.

    You can also try enabling it with page directives or something else if EL should be disabled.

    <%@ page isScriptingEnabled="true" isELIgnored="false" %> //of course it has to be FALSE
    

    (Sorry, I can't remember if this 100% correct. It might be 'isELEnabled')

提交回复
热议问题