我在jsp中用了下面这句,没有报错
<%request.getSession().getAttribute("closureConfig");%>但当我想改成EL语言
${sessionScope.closureConfig}
时就报错:
java.lang.IllegalStateException: Cannot access session scope in page that does not participate in any session
at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContextImpl.java:251)
at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextImpl.java:236)
请问是怎么回事?? 不胜感激..
<%request.getSession().getAttribute("closureConfig");%>但当我想改成EL语言
${sessionScope.closureConfig}
时就报错:
java.lang.IllegalStateException: Cannot access session scope in page that does not participate in any session
at org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContextImpl.java:251)
at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextImpl.java:236)
请问是怎么回事?? 不胜感激..
虽然没报错,但是不是没取出东西来?