public class ViewEditController extends SimpleFormRedirectController
Modifier and Type | Field and Description |
---|---|
private int |
nextImageId |
private static java.lang.String |
SUBMIT_CANCEL |
private static java.lang.String |
SUBMIT_CLEAR_IMAGE |
private static java.lang.String |
SUBMIT_DELETE |
private static java.lang.String |
SUBMIT_SAVE |
private static java.lang.String |
SUBMIT_UPLOAD |
private java.lang.String |
uploadDirectory |
DEFAULT_COMMAND_NAME
Constructor and Description |
---|
ViewEditController() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
formBackingObject(javax.servlet.http.HttpServletRequest request) |
private int |
getNextImageId(java.io.File uploadDir) |
protected boolean |
isFormChangeRequest(javax.servlet.http.HttpServletRequest request) |
protected void |
onBindAndValidate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.BindException errors) |
protected org.springframework.web.servlet.ModelAndView |
onSubmit(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object command,
org.springframework.validation.BindException errors) |
protected java.util.Map |
referenceData(javax.servlet.http.HttpServletRequest request,
java.lang.Object command,
org.springframework.validation.Errors errors) |
void |
setUploadDirectory(java.lang.String uploadDirectory) |
getSuccessRedirectView, getSuccessRedirectView, hasSubmitParameter, setSuccessUrl
doSubmitAction, getFormView, getSuccessView, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, processFormSubmission, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidation
currentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewForm
bindAndValidate, checkCommand, createBinder, createCommand, getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, getWebBindingInitializer, initApplicationContext, initBinder, isValidateOnBinding, onBind, onBind, prepareBinder, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators, setWebBindingInitializer, suppressBinding, suppressValidation, suppressValidation, useDirectFieldAccess
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
private static final java.lang.String SUBMIT_UPLOAD
private static final java.lang.String SUBMIT_CLEAR_IMAGE
private static final java.lang.String SUBMIT_SAVE
private static final java.lang.String SUBMIT_DELETE
private static final java.lang.String SUBMIT_CANCEL
private java.lang.String uploadDirectory
private int nextImageId
public void setUploadDirectory(java.lang.String uploadDirectory)
protected java.lang.Object formBackingObject(javax.servlet.http.HttpServletRequest request)
formBackingObject
in class org.springframework.web.servlet.mvc.AbstractFormController
protected java.util.Map referenceData(javax.servlet.http.HttpServletRequest request, java.lang.Object command, org.springframework.validation.Errors errors)
referenceData
in class org.springframework.web.servlet.mvc.SimpleFormController
protected void onBindAndValidate(javax.servlet.http.HttpServletRequest request, java.lang.Object command, org.springframework.validation.BindException errors) throws java.lang.Exception
onBindAndValidate
in class org.springframework.web.servlet.mvc.BaseCommandController
java.lang.Exception
protected boolean isFormChangeRequest(javax.servlet.http.HttpServletRequest request)
isFormChangeRequest
in class org.springframework.web.servlet.mvc.SimpleFormController
protected org.springframework.web.servlet.ModelAndView onSubmit(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object command, org.springframework.validation.BindException errors) throws java.lang.Exception
onSubmit
in class org.springframework.web.servlet.mvc.SimpleFormController
java.lang.Exception
private int getNextImageId(java.io.File uploadDir)