且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Struts 2中的EL无法正常工作

更新时间:2023-09-11 23:03:10

您需要更改EL才能在valueStack中找到操作变量.

You need to change EL to find your action variable in the valueStack.

<c:out value="${pageNumber}"/> 


请注意,由于Struts请求包装程序,EL表达式应有权访问valueStack变量.请参见我们如何在框架中使用JSTL .


Note, that EL expressions should have access to valueStack variables due to Struts request wrapper. See How we use JSTL with the framework.