让你的视图页面更简洁,我经常听见抱怨说,在使用默认的视图引擎时,页面中总是存在类似于页面声明(page directive)这样烦人的东西。实际上很大程度上这些东西也是可以定制的。
基于16个网页-相关网页
the page directive 网页指令
A mechanism to expose page directive attributes to the scripting environment.
用于将页指令属性公开给脚本环境的机制。
You typically set a value for this property in the page directive or by overriding the property.
通常在页面指令中或通过重写属性设置此属性的值。
To do this, you can declare that your JSP page USES a separate page to handle error messages. This is accomplished by including the following page directive anywhere in your JSP page.
要实现这一功能,您可以声明,您的jsp页面使用一个单独的页面来处理错误消息。
应用推荐