jsp页面中用变量代替方法的调用

<c:forEach var=”modules” items=”${SES_powers.modules}” varStatus=”status”>
?????
? </c:forEach>

SES_powers.modules 会自动调用SES_powers的getModules()方法,(即使没有modules这个变量),这样避免了在页面中引用JAVA代码

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注