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

web controller package for Spring Web MVC framework.

See:
          Description

Class Summary
GlueAbstractController Spring MVC ÀÇ Controller.
GlueJsonController Json Controller for SpringMVC.
GlueSimpleController Simple Controller for SpringMVC.
GlueXMLViewController ÀÌ Controller´Â XML ¼³Á¤À» ÅëÇÑ View¸¦ ÄÁÆ®·ÑÇÏ´Â ControllerÀÌ´Ù.
 

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:
Ç㠵γç


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.