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.

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

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: