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-json-servlet.xml dispatcher org.springframework.web.servlet.DispatcherServlet 1 . . . dispatcher *.json 참고 : 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, setViewPage
public void preDoAction(GlueWebContext ctx)
preDoAction
in class GlueAbstractController
public void afterDoAction(GlueWebContext ctx)
afterDoAction
in class GlueAbstractController
public ModelAndView setModelAndView(GlueWebContext ctx)
setModelAndView
in class GlueAbstractController
Copyright © 2013–2021 POSCO ICT. All rights reserved.