当前位置: 动力学知识库 > 问答 > 编程问答 >

Patch/Override a .jsp file in /resources directory in OSGi bundles

问题描述:

Say I have a osgi bundle (xyz.jar) with multiple class files, jsp's, css files etc. I need to patch one .jsp file (say admin.jsp) in this bundle using osgi fragment bundle and/or require-bunlde.

What I have done is created a patch bundle with the patched version of the .jsp file only in the correct directory structure. To attach this the to the main bundle, I have created a fragment bundle to xyz.jar and marked the patch bundle as required (require-bundle).

Previously I have used this same method to patch a .class file in a osgi bundle. However it seems, the .jsp file doesn't get patched.

I am wondering what I am doing wrong here. Is there a better way to patch a single .jsp file residing inside an osgi bundle?

分享给朋友:
您可能感兴趣的文章:
随机阅读: