Storing web content in a JAR file

后端 未结 6 1680
被撕碎了的回忆
被撕碎了的回忆 2021-02-14 03:16

Is it possible to store web content (such as JSPs, HTML, images, CSS etc) in a JAR file?

I\'ve been looking at various options at modularising our web applications and t

6条回答
  •  甜味超标
    2021-02-14 03:32

    You can also use the weblets project (see https://weblets.dev.java.net/).

    You store some resources in a JAR library (such as images, css, javascript...) and you write a really simple weblet-config.xml. Then in the JSF page, you can refer them directly with this syntax:

    
    

提交回复
热议问题