AF
HomeTagSubmit NotesAsk AnythingLoginSubscribe Us
AF
1. Feel Free to ask and submit anything on Anyforum.in and get satisfactory answer
2. Registration is not compulsory, you can directly login via google or facebook
3. Our Experts are looking for yours ?.



java-spring: What is purpose of spring mvc Controllers?

Spring MVC provide many types of controllers which are following:

1)Controller
2)AbstractController
3)ParameterizableViewController
4)UrlFilenameViewController
5)MultiActionController
6)BaseCommandController
7)AbstactCommandController
8)AbstractFormController
9)SimpleFormController
10)AbstractWizardFormController
-----------------------------------------------------------------

Core Controller:

1)Controller
2)AbstractController
----------------------------------------
Multi Action Controller:

1)MultiActionController
------------------------------------------

Command Controller:

1)BaseCommandController
2)AbstactCommandController
---------------------------------------------

View Controller:

1)ParameterizableViewController
2)UrlFilenameViewController
-------------------------------------------------

Form Controller:

1)AbstractFormController
2)SimpleFormController
-------------------------------------------
Wizard Controller:

1)AbstractWizardFormController
--------------------------------------------

Throwaway Controller:

1)ThrowawayController

could you please explain about all the controller concepts with suitable example.



Thanking you.

java x 210
spring x 24
Posted On : 2016-09-03 09:12:30.0
profile MOHAMMAD SALEEM BASHA - anyforum.in MOHAMMAD SALEEM BASHA
267150
up-rate
3
down-rate

Answers


Base Controller interface, representing a component that receives HttpServletRequest and HttpServletResponse instances just like a HttpServlet but is able to participate in an MVC workflow. Controllers are comparable to the notion of a Struts Action. Any implementation of the Controller interface should be a reusable, thread-safe class, capable of handling multiple HTTP requests throughout the lifecycle of an application. To be able to configure a Controller easily, Controller implementations are encouraged to be (and usually are) JavaBeans.

For more information, please refer spring io docs about All Controllers:

Spring web portlet mvc package- Click Here

Spring web servlet mvc package- Click Here

Posted On : 2016-09-04 18:47:55
Satisfied : 1 Yes  0 No
profile Rishi Kumar - anyforum.in Rishi Kumar
523188222697
Reply This Thread
up-rate
3
down-rate



Post Answer
Please Login First to Post Answer: Login login with facebook - anyforum.in