Spring Framework

Spring Projects

Spring Project 1

adplus-dvertising
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.

Syntax:

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
commandName)

This controller provide following types of method:

handleRequestInternal:

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

handle:

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

Example of AbstractCommandController in Spring MVC

Previous Home Next