Results 1 to 2 of 2

Thread: How to expose ressources of custom app framework?

  1. #1
    Join Date
    Sep 2004
    Posts
    127

    Default How to expose ressources of custom app framework?

    Hi,

    Since I'm working on several spring-based apps in parallel, I've built my own application framework on top of spring.

    Now I'd like to include some ressources (like images, css, js) in my framework jar. Bundling them up is not a problem, but how do I expose them to Tomcat?

    I guess I could use an ant target that copies the ressources from my jar to the war, or include in my framework a service that loads the ressources from the classpath, but both approaches seem "not right"..

    Any ideas?

    TIA,
    dan

  2. #2
    Join Date
    Aug 2004
    Location
    Amsterdam, Netherlands
    Posts
    450

    Default

    You could provide a custom view that loads the resource from the classpath, but I'd rather take the former approach where Tomcat (or even better: Apache) serves static content.

    This way, you benefit from an Apache server that is simply better as serving static content!

    A third option would be to deploy the resources as a separate webapp or something...
    Alef Arendsen
    SpringSource
    http://www.springsource.com

Similar Threads

  1. Replies: 2
    Last Post: Aug 2nd, 2006, 10:18 PM
  2. A real POJO based web framework...
    By psccristian in forum Web
    Replies: 0
    Last Post: Sep 14th, 2005, 06:57 AM
  3. Spring code remarks
    By Alarmnummer in forum Architecture
    Replies: 18
    Last Post: Apr 7th, 2005, 07:17 AM
  4. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM
  5. Custom BeanFactory-implementation?
    By ttlaitin in forum Container
    Replies: 1
    Last Post: Nov 2nd, 2004, 11:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •