public class JSPSelectCollectionStep extends JSPStep
This JSPStep class works with the SubmissionController servlet for the JSP-UI
The following methods are called in this order:
SubmissionController,
JSPStep,
SelectCollectionStep| Constructor and Description |
|---|
JSPSelectCollectionStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
doPostProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo,
int status)
Do any post-processing after the step's backend processing occurred (in
the doProcessing() method).
|
void |
doPreProcessing(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Do any pre-processing to determine which JSP (if any) is used to generate
the UI for this step.
|
String |
getReviewJSP(Context context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
SubmissionInfo subInfo)
Return the URL path (e.g.
|
public void doPreProcessing(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
If this step requires user interaction, then this method must call the JSP to display, using the "showJSP()" method of the JSPStepManager class.
If this step doesn't require user interaction OR you are solely using Manakin for your user interface, then this method may be left EMPTY, since all step processing should occur in the doProcessing() method.
doPreProcessing in class JSPStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectjavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic void doPostProcessing(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo, int status) throws javax.servlet.ServletException, IOException, SQLException, AuthorizeException
It is this method's job to determine whether processing completed successfully, or display another JSP informing the users of any potential problems/errors.
If this step doesn't require user interaction OR you are solely using Manakin for your user interface, then this method may be left EMPTY, since all step processing should occur in the doProcessing() method.
doPostProcessing in class JSPStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectstatus - any status/errors reported by doProcessing() methodjavax.servlet.ServletExceptionIOExceptionSQLExceptionAuthorizeExceptionpublic String getReviewJSP(Context context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, SubmissionInfo subInfo)
This Review JSP is loaded by the 'Verify' Step, in order to dynamically generate a submission verification page consisting of the information gathered in all the enabled submission steps.
getReviewJSP in class JSPStepcontext - current DSpace contextrequest - current servlet request objectresponse - current servlet response objectsubInfo - submission info objectCopyright © 2016 DuraSpace. All Rights Reserved.