Results 1 to 4 of 4

Thread: Reloading servlet.xml handler mappings on the fly?

  1. #1
    Join Date
    May 2005
    Posts
    25

    Default Reloading servlet.xml handler mappings on the fly?

    Hi,

    Is there a method by which changes to the frontcontroller-servlet.xml (containing handler mappings to controllers) can be reloaded on the fly without removing current mappings until it's fully reloaded?

    Many thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Not sure, but why are you doing this (just out of interest )?

  3. #3
    Join Date
    May 2005
    Posts
    25

    Default

    we have created a spring driven framework that many current ASP sites will be migrated to. unlike the ASP sites which are all separate, the spring framework we have developed will run all sites from the same code base.

    because we work with marketing a lot, we often get asked to create new forms for registration of events, reports, products, whatever .. people sign up to stuff.

    we use spring for form handling (validators, simpleformcontroller) but we've abstracted the notion of a form to such an extent that we have just one form controller, one validator, and our form itself in the configurable side, i.e JSP sends hidden fields for configuring the validation etc..

    therefore we have a situation where we have a set of classes that handle all forms going forward.

    so when marketing now come and say, we want a new form today, and it's gonna be at http://www.comp.com/register/demo2.htm in th new framework, we have to map this URL to the form controller and then restart the whole application.

    i suppose we *could* just create a mapping /register/* but I wanted to see if dynamic update of beans was possible.

    thanks.

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Can you not stage Apache in front of it and have Apache redirect to your central controller?

    To be honest, if it were me, I would be worried by trying to implement one controller, one validator etc. I would also be *very* concerned about letting the JSP have that much control of what to do.

    Sounds like an MVC1 implemented using MVC2 technology

Similar Threads

  1. Multiple Handler Mappings
    By carrijo in forum Web
    Replies: 0
    Last Post: Oct 20th, 2005, 07:52 PM
  2. Replies: 0
    Last Post: Aug 29th, 2005, 03:23 PM
  3. DispatcherServlet: No adapter for handler
    By mwormgoor in forum Web Flow
    Replies: 2
    Last Post: Aug 4th, 2005, 04:53 PM
  4. Replies: 1
    Last Post: Feb 20th, 2005, 03:39 AM
  5. Replies: 0
    Last Post: Jan 25th, 2005, 05:10 PM

Posting Permissions

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