Skip navigation links

Package com.poscoict.glueframework.web.control.spring

web controller package for Spring Web MVC framework.

See: Description

Package com.poscoict.glueframework.web.control.spring Description

web controller package for Spring Web MVC framework. Glue Web Controller.

Spring Web MVC Framework을 위한 Wrapper Class인 GlueSimpleController 와 그 기능 확장을 위한 Class인 GlueAbstractController 을 제공한다.

 1. web.xml
     <servlet>
         <servlet-name>dispatcher</servlet-name>
         <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
         <init-param>
             <param-name>contextConfigLocation</param-name>
             <param-value>/WEB-INF/dispatcher-servlet.xml</param-value>
         </init-param>
         <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
         <servlet-name>dispatcher</servlet-name>
         <url-pattern>*.mvc</url-pattern>
     </servlet-mapping>
     
 2. dispatcher-servlet.xml
     <?xml version="1.0" encoding="UTF-8"?>
     <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
             http://www.springframework.org/schema/context
             http://www.springframework.org/schema/context/spring-context-3.0.xsd
             http://www.springframework.org/schema/mvc
             http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
             http://www.directwebremoting.org/schema/spring-dwr
             http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
 
         <bean id="simpleUrlMapping"
             class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
             <property name="mappings">
                 <value>
                     /*.mvc=controller
                 </value>
             </property>
         </bean>
         <bean name="controller" class="com.poscoict.glueframework.web.control.spring.GlueSimpleController" />
         <bean id="viewResolver"
             class="org.springframework.web.servlet.view.InternalResourceViewResolver">
             <property name="prefix" value="/springmvc/" />
             <property name="suffix" value=".jsp" />
         </bean>
 
 3. url & parameter
    http://{ip}:{port}/{context}/sample.mvc
 
 
Since:
2013. 5. 10.
Version:
1.0.0
Author:
허 두녕
Skip navigation links

Copyright © 2013–2021 POSCO ICT. All rights reserved.