Announcement Announcement Module
Collapse
No announcement yet.
web.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • web.xml

    For the following content in web.xml

    <context-param>
    <param-name>webAppRootKey</param-name>
    <param-value>@WEBAPP_NAME@.root</param-value>
    </context-param>

    <listener>
    <listener-class>org.springframework.web.context.ContextLoade rListener</listener-class>
    </listener>


    <servlet>
    <servlet-name>@WEBAPP_NAME@</servlet-name>
    <servlet-class>*org.springframework.web.servlet.DispatcherS ervlet</servlet-class>
    <init-param>
    <param-name>contextConfigLocation</param-name>
    <param-value> /WEB-INF/spring/test-servlet.xml </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>


    My questions are:

    1) What is the webAppRootKey for?

    2) Must the @WEBAPP_NAME@ in <param-value>@WEBAPP_NAME@.root</param-value> match that in <servlet-name>@WEBAPP_NAME@</servlet-name>?

    3) Why does people use @WEBAPP_NAME@, instead of straight forward WEBAPP_NAME?


    Thanks
    Last edited by timjsn; Aug 12th, 2012, 04:50 PM.
Working...
X