Spring Framework

Spring Projects

Spring Project 1

AbstractCommandController in Spring MVC
Previous Home Next

This abstract base controller provide the facility to custom command controller. This command will be autopopulates a bean from the request . For command validator can be used. This controller inherited the BaseCommandController.


public abstract class AbstractCommandController
extends BaseCommandController

This Controller also provide following types of constructor:

public AbstractCommandController()

public AbstractCommandController(Class commandClass)

public AbstractCommandController(Class commandClass, String

This controller provide following types of method:


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


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

Example of AbstractCommandController in Spring MVC

Previous Home Next