JSP EL parameter list / interface

久未见 提交于 2019-12-24 10:41:39

问题


Is there at a mechanism (preferably compile-time) in JSP to specify required parameters for the JSP accessible by EL, or are the available objects always unknown?

There are cases where I want to specify that the JSP expects at least certain named parameters with certain types.


回答1:


You can look into Tag Files, where the attribute page directive may suit your needs. This directive allows you to specify the name, type, whether the attribute is required, etc.



来源:https://stackoverflow.com/questions/25625808/jsp-el-parameter-list-interface

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!