且构网

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

是否可以在JSP中创建本地页面范围?

更新时间:2023-12-01 18:34:22

由于我认为自定义标签包装可能是理想的解决方案,因此我创建了另一个更具体的问题,并且得到了

As I thought that custom tag wrapping could be the ideal solution I created an other more specific question and I've got an answer here that solves the problem.

只需在评估正文之前删除所有pageContext属性,然后在doEndTag()处再次添加它们.

It's simply to remove all pageContext attributes before the evaluation of the body and adding them again at doEndTag().