|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
jp.terasoluna.fw.web.struts.actions.ActionEx
jp.terasoluna.fw.web.struts.actions.AbstractBLogicAction<P>
jp.terasoluna.fw.web.struts.actions.BLogicAction<P>
jp.terasoluna.fw.web.struts.actions.DownloadBLogicAction<P>
P
- Specify JavaBean which is the input value to the business logic.public class DownloadBLogicAction<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 |
---|
org.apache.commons.logging.Log log
Constructor Detail |
---|
public DownloadBLogicAction()
Method Detail |
---|
protected void processBLogicResult(BLogicResult result, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ActionMappingEx mappingEx)
When resultObject
is one of the following, perform the download process in this class.
AbstractDownloadObject
AbstractDownloadObject
as a property
processBLogicResult
in class AbstractBLogicAction<P>
result
- BLogicResult instancerequest
- HTTP requestresponse
- HTTP responsemappingEx
- Extended action mapping
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |