Results 1 to 3 of 3

Thread: Manage HTML resources in Spring MVC

  1. #1
    Join Date
    May 2012
    Posts
    4

    Default Manage HTML resources in Spring MVC

    Is there any way to manage html resources in spring mvc ?
    similar to grails-resources.
    Link to grails resource : http://www.anyware.co.uk/2005/2011/0...ources-plugin/

  2. #2
    Join Date
    Mar 2012
    Location
    Gurgaon, India
    Posts
    49

    Default

    Do you mean keeping (X)HTML files in the web application and bypassing the MVC view resolver for these files? If yes, and using Spring 3.x, you can add

    Code:
        <mvc:resources location="/html/" mapping="/html/**" />
    to your *-servlet.xml file. Then, all resources accessed with URLs starting with /html/ will be directly served and not be handled by the view resolvers.

  3. #3
    Join Date
    May 2012
    Posts
    4

    Default

    No. I mean managing (js and css files).
    How can i manage these files per page.
    For example : i want script_1 and script_2 on page_1.jsp
    i mention something like : LOAD_SCRIPT_1 which will loads script_1 and script_2

    i define that somewere in spring and then load this command LOAD_SCRIPT_1 which will load the scripts.

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
  •