Results 1 to 4 of 4

Thread: common web project - share jsp, load from classpath

  1. #1

    Default 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

  2. #2
    Join Date
    Oct 2006
    Posts
    13

    Default

    I have a similar kind of a situtation - Any idea or help in this is greatly appreciated.

  3. #3

    Question

    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.

  4. #4

    Default

    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
  •