开发者

Sharing handlers and backing beans

I am wondering if it is possible to have a JSF handler and some of the backing beans in a war that is shared. I say war because 开发者_JAVA百科I have a jsp which has a handler and backing beans that are shared between different applications, and need to be called by 2 different war files.

From my earlier investigation I found that it is not possible to have jsf fragments (.jsp and .jspf) in a jar, it has to be in a war. So I am thinking is it possible to put the common handler and beans in this war too and then import or somehow call the handler methods from the other war files.

I know it can be done easily if it was inside a jar file which is packaged in the war, but just wondering if instead of creating a separate jar file I can use the existing common war file.

Thanks. Any ideas much appreciated.


It is possible to put the supporting code handlers and beans in the war as well. However since I need it to be called from 2 different wars it should be in a jar.

We decided to take a different approach anyways as this was not exactly successful.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜