Results 1 to 3 of 3

Thread: ServletConfig

  1. #1
    Join Date
    May 2005
    Posts
    4

    Default ServletConfig

    Hi,

    In a servlet, we can easily get the ServletConfig from the init() method.
    I am trying to get the absolute path of the webapp.

    Is there a way for me to get the ServletConfig in spring?

    Regards,
    james

  2. #2
    Join Date
    Oct 2004
    Location
    Herndon, VA, US
    Posts
    648

    Default

    You can always subclass DispatcherServlet, override init(), and do whatever you want to do. Just don't forget to call super.init().
    --Jing Xue

  3. #3
    Join Date
    May 2005
    Posts
    4

    Default

    Thanks for the suggestion, manifoldronin

Posting Permissions

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