Results 1 to 2 of 2

Thread: Handling Static HTML

  1. #1
    Join Date
    Jun 2006
    Location
    Kansas City
    Posts
    95

    Question Handling Static HTML

    I have my application configured to intercept any URL's ending in "html" to the appropriate controller and JSP view.

    However, I have a few static HTML pages, such as my sitemap, that need to bypass this mechanism. How do you configure the application with these exceptions?

    I'm using Spring MVC and Tiles.
    Last edited by kcflyer; Jun 23rd, 2009 at 11:54 AM.

  2. #2
    Join Date
    Nov 2006
    Location
    Columbus, OH
    Posts
    143

    Default

    kcflyer,

    Short of writing a new controller or a new filter to handle those exceptions, either changing the mapping from *.html to *.htm for your controllers or renaming the static files from *.html to *.htm would be the easiest way. I'm not aware of a built-in mechanism to do what you are describing.

    Hope that helps,
    Regards,

    Joshua Preston

    --

    "The Guide says that there is an art to flying," said Ford, "or rather a knack. The knack lies in learning how to throw yourself at the ground and miss."

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
  •