How to pre-compile jsp tag files?

删除回忆录丶 提交于 2019-12-10 11:49:24

问题


http://download.oracle.com/javaee/1.4/tutorial/doc/JSPTags6.html says:

Tag files can also be compiled into Java classes and bundled as a tag library. This is useful when you wish to distribute a binary version of the tag library without the original source. If you choose this form of packaging, you must use a tool that produces portable JSP code that uses only standard APIs.

How can i pre-compile them? I tried jspc but it failed :

BUILD FAILED org.apache.jasper.JasperException: ... link.tagx(8,40) directive.attribute action can be used in tag files only


回答1:


Have a look at this link. I think pre-compiling JSPs also pre-compiles the TAG libraries referenced.



来源:https://stackoverflow.com/questions/3822710/how-to-pre-compile-jsp-tag-files

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