com.poscoict.glueframework.web.control.struts
Class GlueSimpleAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.poscoict.glueframework.web.control.struts.GlueAbstractAction
          extended by com.poscoict.glueframework.web.control.struts.GlueSimpleAction

public class GlueSimpleAction
extends GlueAbstractAction

Internal Use Only

GlueSimpleActionÀº Struts F/WÀ» À§ÇÑ Wrapper Class ÀÌ´Ù.
GlueSimpleActionÀº File Upload¸¦ À§ÇÑ GlueMultipartRequest¸¦ »ý¼ºÇÏ°í GlueContext¸¦ »ý¼ºÇÑ´Ù.

¶ÇÇÑ Exception 󸮸¦ ÇÏ¿© Exception ¹ß»ý½Ã ´Ù¸¥ page·ÎÀÇ ºÐ±â ¹× page RoutingÀ» ¼öÇàÇÑ´Ù.


Field Summary
 
Fields inherited from class com.poscoict.glueframework.web.control.struts.GlueAbstractAction
logger
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
GlueSimpleAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward afterExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇÑ ÈÄ¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù.
 GlueWebContext beforeExecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response)
          ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇϱâ Àü¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù.
 
Methods inherited from class com.poscoict.glueframework.web.control.struts.GlueAbstractAction
execute, processUploadFile
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueSimpleAction

public GlueSimpleAction()
Method Detail

beforeExecute

public GlueWebContext beforeExecute(org.apache.struts.action.ActionMapping mapping,
                                    org.apache.struts.action.ActionForm form,
                                    HttpServletRequest request,
                                    HttpServletResponse response)
Description copied from class: GlueAbstractAction
ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇϱâ Àü¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù. ¸¸ÀÏ GlueBizController¸¦ È£ÃâÇϱâ Àü¿¡ ¼±Çà ÀÛ¾÷ÀÌ ÇÊ¿äÇϰųª StrutsÀÇ Action¿¡¼­ ¹Ýµå½Ã ó¸®ÇØ¾ß µÇ´Â ³»¿ëÀÌ ÀÖ´Ù¸é ÀÌ Method¸¦ OverrideÇÏ¿© ±¸ÇöÇÑ´Ù. ¼öÇà °á°ú °ªÀº request.setAttribute()¸¦ ÀÌ¿ëÇÏ¿© ÀúÀåÇÏ°í ÇØ´ç ³»¿ëÀº ServiceÀÇ Activity¿¡¼­ GlueContext ¸¦ ÅëÇØ »ç¿ëÇÒ ¼ö ÀÖ´Ù. ¶ÇÇÑ afterExecute()¿¡¼­ request.getAttribute() ¸¦ ÀÌ¿ëÇÏ¿© ¿©±â¼­ ÀúÀåÇÑ °ªÀ» »ç¿ëÇÒ ¼ö ÀÖ´Ù.

Specified by:
beforeExecute in class GlueAbstractAction
Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse

afterExecute

public org.apache.struts.action.ActionForward afterExecute(org.apache.struts.action.ActionMapping mapping,
                                                           org.apache.struts.action.ActionForm form,
                                                           HttpServletRequest request,
                                                           HttpServletResponse response)
Description copied from class: GlueAbstractAction
ÀÌ Method¸¦ Override ÇÏ¿© GlueBizController¸¦ È£ÃâÇÑ ÈÄ¿¡ ¼öÇà ÇÏ´Â ³»¿ëÀ» ±¸ÇöÇÑ´Ù. ¸¸ÀÏ GlueBizController¸¦ È£ÃâÇÑ ÈÄ¿¡ ÀÛ¾÷ÀÌ ÇÊ¿äÇϰųª StrutsÀÇ Action¿¡¼­ ¹Ýµå½Ã ó¸®ÇØ¾ß µÇ´Â ³»¿ëÀÌ ÀÖ´Ù¸é ÀÌ Method¸¦ OverrideÇÏ¿© ±¸ÇöÇÑ´Ù. °á°ú°ªÀº ¾Æ·¡¿Í °°ÀÌ ÀúÀåÇÏ¿© »ç¿ëÇÑ´Ù.
 GlueContext ctx = (GlueContext) request.getAttribute( GlueWebConstants.CONTEXT );
 ctx.put( key, value );
 

Specified by:
afterExecute in class GlueAbstractAction
Parameters:
mapping - ActionMapping
form - ActionForm
request - HttpServletRequest
response - HttpServletResponse


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