简体   繁体   中英

How to use JSP page templates in my custom tag library

I have custom tag library project (using maven ) and have user project that uses my custom tag library. I want to add jsp template to custom tag library project so that jsp tags would be generated according to this template when used in user project. I've tried to locate the jsp template at resources/META-INF and resources/WEB-INF folders of custom tag project and HTTP-request it from custom tag class, but this is not working.

Locating JSPs in the folder resources/META-INF was correct. It have not worked on my case just because of old version of WAR-file with no JSP in it which maven couldn't delete because of the process that held my war-file.

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