
public class GlueJsonController extends GlueAbstractController
 Bean Property
 
 - viewPage : (필수) default는 'jsonView'
 
 
 ModelAndView 우선순위
    1. GlueService 실행중 GlueContext에 "forwardname" 이름으로 담기는 값.
    2. controller bean에 정의된 viewPage property 값
    3. jsonView
 
 JSON Data
    1. "result-keys" : GlueResultKeyList activity
    2. is_success : GlueContext의 Exception 유무
    3. exception_class
    4. exception_code
    5. exception_message
    6. exception_localized_message
 
 
 
 예제
 사용 예# 1
 
      
     
     
 사용 예# 1
 
     
          
      
 
 
 
 참고 : web.xml
 
     
         
             dispatcher 
             org.springframework.web.servlet.DispatcherServlet 
             1 
          
         
             dispatcher 
             *.json 
          
         . . .
      
 
 
 참고 : dispatcher-json-servlet.xml 
 
     
          
          
          
          
      
 
 
 참고 : dispatcher-json-servlet.xml 
 
     
         
             
                 
                     /*.json=controller
                  
              
          
          
          
          
       
 logger| Constructor and Description | 
|---|
GlueJsonController()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
afterDoAction(GlueWebContext ctx)  | 
void | 
preDoAction(GlueWebContext ctx)  | 
ModelAndView | 
setModelAndView(GlueWebContext ctx)  | 
afterDoAction, getViewPage, handleRequest, preDoAction, processUploadFile, setCookie, setErrorPage, setHeader, setRequestAttr, setRequestParam, setSessionAttr, setViewPagepublic void preDoAction(GlueWebContext ctx)
preDoAction in class GlueAbstractControllerpublic void afterDoAction(GlueWebContext ctx)
afterDoAction in class GlueAbstractControllerpublic ModelAndView setModelAndView(GlueWebContext ctx)
setModelAndView in class GlueAbstractControllerCopyright © 2013–2021 POSCO ICT. All rights reserved.