MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology

Spring Framework

Spring Projects

Spring Project 1

AbstractWizardFormController in Spring MVC
Previous Home Next

This controller provide the facility for typical wizard-style workflows. It also for classic forms, wizards have more than one form view page. it also act an actions instead of one single submit action .

Syntax:

public abstract class AbstractWizardFormController
extends AbstractFormController

This controller also provide the following method:

setPages:

public final void setPages(String[] pages)

getPages:

public final String[] getPages()

getPageCount:

protected final int getPageCount()

getNrOfPages:

protected final int getNrOfPages()

setPageAttribute:

public final void setPageAttribute
(String pageAttribute)

getPageAttribute:

public final String getPageAttribute()

setAllowDirtyBack:

public final void setAllowDirtyBack
(boolean allowDirtyBack)

isAllowDirtyBack:

public final boolean isAllowDirtyBack()

setAllowDirtyForward:

public final void setAllowDirtyForward
(boolean allowDirtyForward)

isAllowDirtyForward:

public final boolean isAllowDirtyForward()

onBindAndValidate:

protected final void onBindAndValidate
(HttpServletRequest request,Object command,
BindException errors)throws Exception

onBindAndValidate:

protected void onBindAndValidate
(HttpServletRequest request,Object command,
BindException errors,int page)throws Exception

isFormSubmission:

protected boolean isFormSubmission
(HttpServletRequest request)

referenceData:

protected final Map referenceData
(HttpServletRequest request,Object command,
Errors errors)throws Exception

referenceData:

protected Map referenceData(HttpServletRequest
request,Object command,Errors errors,int page)
throws Exception

referenceData:

protected Map referenceData(HttpServletRequest
request,int page)throws Exception

showForm:

protected final ModelAndView showForm
(HttpServletRequest request,HttpServletResponse
response,BindException errors)throws Exception

showPage:

protected final ModelAndView showPage
(HttpServletRequest request,BindException errors,
int page)throws Exception

getInitialPage:

protected int getInitialPage(HttpServletRequest
request,Object command)

getInitialPage:

protected int getInitialPage(HttpServletRequest
request)

getPageSessionAttributeName:

protected String getPageSessionAttributeName
(HttpServletRequest request)

getPageSessionAttributeName:

protected String getPageSessionAttributeName()

handleInvalidSubmit:

protected ModelAndView handleInvalidSubmit
(HttpServletRequest request,HttpServletResponse
response)throws Exception

processFormSubmission:

protected final ModelAndView processFormSubmission
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

getCurrentPage:

protected int getCurrentPage(HttpServletRequest
request)

isFinish:

protected boolean isFinish(HttpServletRequest
request)

isCancel:

protected boolean isCancel(HttpServletRequest
request)

getTargetPage:

protected int getTargetPage(HttpServletRequest
request,Object command,Errors errors,int
currentPage)

getTargetPage:

protected int getTargetPage(HttpServletRequest
request,int currentPage)

validatePage:

protected void validatePage(Object command,
Errors errors,int page,boolean finish)

validatePage:

protected void validatePage(Object command,
Errors errors,int page)

processFinish:

protected abstract ModelAndView processFinish
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

 

processCancel:

protected ModelAndView processCancel
(HttpServletRequest request,HttpServletResponse
response,Object command,BindException errors)
throws Exception

Example of AbstractWizaredFormController in Spring MVC

Previous Home Next