该文件应在运行时动态地包含在所有jsp页面中
You can do the following:
<jsp-config>
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>false</scripting-invalid>
<is-xml>false</is-xml>
<include-prelude>/javascript.jsp</include-prelude>
</jsp-property-group>
</jsp-config>
And include your JS file in javascript.jsp. I haven't tried if directly telling include-prelude to include the JS actually works or not, worth a try.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.