Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Glassfish Spring
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <param-value>
- /WEB-INF/applicationContext.xml
- etc etc
- </param-value>
- </context-param>
- <listener>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- </listener>
- <servlet>
- <servlet-name>dispatcher</servlet-name>
- <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>dispatcher</servlet-name>
- <url-pattern>/myApp/*</url-pattern>
- </servlet-mapping>
- <context-param>
- <param-name>contextConfigLocation</param-name>
- <!-- All file ends with Context.xml under web-inf folder -->
- <param-value>WEB-INF/*Context.xml</param-value>
- </context-param>
- <listener>
- <display-name>Spring context loader</display-name>
- <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
- <!-- use following if you want to use request scope -->
- <!-- org.springframework.web.context.request.RequestContextListener -->
- </listener>
- <servlet>
- <servlet-name>servlet name</servlet-name>
- <servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>name</servlet-name>
- <url-pattern>/URLName</url-pattern>
- </servlet-mapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement