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, setSuccessUrldoSubmitAction, getFormView, getSuccessView, isFormChangeRequest, onFormChange, onFormChange, onSubmit, onSubmit, processFormSubmission, referenceData, setFormView, setSuccessView, showForm, showForm, suppressValidationcurrentFormObject, getCommand, getErrorsForNewForm, getFormSessionAttributeName, getFormSessionAttributeName, handleInvalidSubmit, handleRequestInternal, isBindOnNewForm, isFormSubmission, isSessionForm, onBindOnNewForm, onBindOnNewForm, setBindOnNewForm, setSessionForm, showForm, showForm, showNewFormbindAndValidate, 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, useDirectFieldAccesshandleRequest, isSynchronizeOnSession, setSynchronizeOnSessionapplyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeadergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextprivate 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.AbstractFormControllerprotected 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.SimpleFormControllerprotected 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.BaseCommandControllerjava.lang.Exceptionprotected boolean isFormChangeRequest(javax.servlet.http.HttpServletRequest request)
isFormChangeRequest in class org.springframework.web.servlet.mvc.SimpleFormControllerprotected 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.SimpleFormControllerjava.lang.Exceptionprivate int getNextImageId(java.io.File uploadDir)