简体   繁体   中英

How to pre-compile jsp tag files?

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

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM