开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜