Skip to main content

WebPages (xhtml or jsp files) on Jar

2 replies [Last post]
Joined: 2003-09-18
Points: 0

Hi, dears!

I need put my web jsf files (xhtml or jsp files) on jar. for I can put or remove the files in groups on deploy. Like a Modules.

This is possible?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2004-12-01
Points: 0

No, you can't bundle your JSP files inside a JAR file, and in turn bundle this JAR file inside your WAR file (if that is what you were trying to do).

JSP files and static resources must be made available at the root level directory (or a subdirectory) of your WAR file.

Joined: 2003-09-18
Points: 0

Thanks for you attention!

you have one approach for make war like modules?

I Think so, make subcontext, like:

And each modules is one different jar:
printipalcontext.war (this have templates and others common objects)
principalcontext_module1.war (like a User Manager Module)
principalcontext_module2.war (... Product Manager module)
principalcontext_module3.war (and so on)

but make cross context sessions for share session's objects?

All Suggestions is welcome, like sites or books(Chapters).