jp.terasoluna.fw.web.struts.actions
Class DownloadBLogicAction<P>

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by jp.terasoluna.fw.web.struts.actions.ActionEx
          extended by jp.terasoluna.fw.web.struts.actions.AbstractBLogicAction<P>
              extended by jp.terasoluna.fw.web.struts.actions.BLogicAction<P>
                  extended by jp.terasoluna.fw.web.struts.actions.DownloadBLogicAction<P>
Type Parameters:
P - Specify JavaBean which is the input value to the business logic.

public class DownloadBLogicAction<P>
extends BLogicAction<P>

This class invokes BLogic at the time of performing download process.
It invokes BLogic directly from Action. This class is not supported in EJB.

To exeute BLogic implementation, specify the target business logic in the "businessLogic" property of <property> in Bean definition file of BLogicAction class. The configuration example of struts-config.xml is also shown below.

Configuration of Bean definition file

 <bean name="/download/downloadAction" scope="prototype"
   class="jp.terasoluna.fw.web.struts.actions.DownloadBLogicAction">
   <property name="businessLogic">
     <ref bean="downloadBLogic"></ref>
   </property>
 </bean>
 <bean id="downloadBLogic" scope="prototype"
   class="jp.terasoluna.sample1.download.blogic.DownloadBLogic">
 </bean>
 

Configuration example of BLogicAction in struts-config.xml

    <action path="/download/downloadAction"
       name="_downloadForm"
       validate="true"
       scope="session"
       input="/download/download.jsp"/>
 


Field Summary
(package private)  org.apache.commons.logging.Log log
          Log class.
 
Fields inherited from class jp.terasoluna.fw.web.struts.actions.AbstractBLogicAction
BLOGIC_FORM_ILLEGAL_ERROR, BLOGIC_MAPPING_ILLEGAL_ERROR, BLOGIC_RESOURCES_ILLEGAL_ERROR, BLOGIC_RESULT_NULL_ERROR, NULL_MAPPER_KEY
 
Fields inherited from class jp.terasoluna.fw.web.struts.actions.ActionEx
FORWARD_TXTOKEN_ERROR
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
DownloadBLogicAction()
           
 
Method Summary
protected  void processBLogicResult(BLogicResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMappingEx mappingEx)
          Reflects the result of Web tier object from BLogicResult.
 
Methods inherited from class jp.terasoluna.fw.web.struts.actions.BLogicAction
doExecuteBLogic, getBusinessLogic, setBusinessLogic
 
Methods inherited from class jp.terasoluna.fw.web.struts.actions.AbstractBLogicAction
convertMessages, doExecute, evaluateBLogicResult, getBLogicIO, getBLogicMapper, getBLogicParams, isErrorsEmpty, postDoExecuteBLogic, preDoExecuteBLogic, setSaveMessageScope
 
Methods inherited from class jp.terasoluna.fw.web.struts.actions.ActionEx
addErrors, addMessages, execute, isSaveToken, isTokenCheck, processTokenCheck, setSaveToken, setTokenCheck
 
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
 

Field Detail

log

org.apache.commons.logging.Log log
Log class.

Constructor Detail

DownloadBLogicAction

public DownloadBLogicAction()
Method Detail

processBLogicResult

protected void processBLogicResult(BLogicResult result,
                                   javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   ActionMappingEx mappingEx)
Reflects the result of Web tier object from BLogicResult.

When resultObject is one of the following, perform the download process in this class.

Overrides:
processBLogicResult in class AbstractBLogicAction<P>
Parameters:
result - BLogicResult instance
request - HTTP request
response - HTTP response
mappingEx - Extended action mapping