开发者

WEB-INF content access in another war

I have three war files (War-Common, War-Physical, War-Derivatives) and we are packaging them in an EAR file. I am able to access c开发者_开发百科ontent (Images, CSS, JavaScripts etc.) of War-Common in War-Physical and War-Derivatives but I am not able to access content of WEB-INF folder of War-Common War. We are acutally placing jsp custom tags inside it but I am not able to access them.

I tried:

<script type="text/javascript" src="/scripts/test.js"></script> 
<script type="text/javascript" src="/WEB-INF/tags/Calendar.tag"></script>

But I am not able to use Calendar.tag.

Its not only tags that cannot be accessed, I am not able to access jsp from WEB-INF folder in War-Physical and War-Derivatives. I guess you cannot access content of WEB-INF in other war files.


It seems its not possible to access web-inf content from one war to another war..so closing this question..


You can put your static files (images/css/javascript etc.) in one core-war(with root context or any other other context). You can then access them easily.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜