-
Jun 24th, 2008, 12:04 PM
#1
common web project - share jsp, load from classpath
Hi,
I have a common web project, and then have several other web projects depend on this project...
I can share the controllers no problem since they are java, though how can i share the jsps ? cuz usually jsps are put like in WEB-INF and are accessed directly...rather than being accessed from the classpath...
Is there a way to implement a view resolver to search for JSPs in the classpath, rather than on the filesystem? That way I can package my JSPs in Jar files.
Thanks,
Josh
-
Sep 11th, 2008, 04:59 AM
#2
I have a similar kind of a situtation - Any idea or help in this is greatly appreciated.
-
Sep 22nd, 2010, 01:50 AM
#3
The same situation here. Did anyone find a solution for the problem? Do you have any ideas/strategies?
I have a web project which I want to develop for two customers with slight differences also great common parts.
Update: Ok, I have found, documented and been told some solutions over at StackOverflow: http://stackoverflow.com/questions/3...or-two-clients
Last edited by ifcore-daniel; Sep 22nd, 2010 at 05:12 AM.
-
Jan 14th, 2011, 05:31 AM
#4
The solution proposed above is a build time workaround.
The minimal requirement for such a situation is to stop the server (No need to talk about OSGI here), add a jar to the web application, which contains needed controller, views as a plugin will do and then start the server.
I can't find a way to achieve this with JSP as view technology, but that's OK with JSF2, and dynamics views as Velocity, Freemarker...
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules