Results 1 to 2 of 2

Thread: Newbie servlet mapping question.

  1. #1
    Join Date
    May 2005
    Posts
    8

    Default Newbie servlet mapping question.

    I am developing a Spring powered web application with an administration module.

    I want the administration pages to be in a sub-directory called admin and would like them to be managed by a seperate controller and spring xml configuration file.

    Can someone recommend the best way to implement this?

    Thanks

  2. #2
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    Create a distinct DispatcherServlet definition and servlet mapping in web.xml. Assuming that the name of that servlet is "foo" you will then have foo-servlet.xml for the Spring config specific to that servlet.

    Please refer to the Servlet spec or a Servlet reference for the supported mapping syntaxes in web.xml servlet mapping elements.

    HTH,
    Rod
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Similar Threads

  1. Replies: 11
    Last Post: Jul 23rd, 2007, 02:09 AM
  2. Replies: 4
    Last Post: Oct 5th, 2005, 11:04 AM
  3. newbie question - Servlets and singleton beans
    By lnader in forum Architecture
    Replies: 2
    Last Post: Aug 22nd, 2005, 03:52 PM
  4. Newbie servlet mapping question.
    By mandyfester in forum Web Flow
    Replies: 1
    Last Post: May 23rd, 2005, 02:43 PM
  5. Replies: 13
    Last Post: Dec 7th, 2004, 10:00 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
  •