SlideShare une entreprise Scribd logo
1  sur  47
 
Spring MVC Dror Bereznitsky Senior Consultant and Architect, AlphaCSP It’s  Time
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction::  Key Features ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction:: More Key Features ,[object Object],[object Object],[object Object],[object Object],[object Object]
Introduction:: Full Stack Framework? ,[object Object],[object Object],[object Object],[object Object]
Introduction:: Spring 2.5 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Agenda ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Background::  Dispatcher Servlet ,[object Object],[object Object],[object Object],[object Object],[object Object]
Background:: Request Handlers ,[object Object],[object Object],[object Object]
Background::  ModelAndView ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Background:: Request Lifecycle Copyright 2006, www.springframework.org Handler
Features Review ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Features:: Configuration ,[object Object],[object Object],[object Object],[object Object]
Deploy a DispatcherServlet ,[object Object],web.xml <servlet> <servlet-name> spring-mvc-demo </servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <init-param> <param-name> contextConfigLocation </param-name> <param-value> /WEB-INF/spring-mvc-demo-servlet.xml </param-value> </init-param> </servlet>   Dispatcher servlet configuration
Annotated Controllers ,[object Object],@Controller public class  PhoneBookController { @RequestMapping ( value  =  &quot;/phoneBook&quot; ,  method  = RequestMethod. GET ) protected  ModelAndView setupForm()  throws  Exception { ModelAndView mv =  new  ModelAndView(); … return  mv; } PhoneBookController.java
Dispatcher Servlet Configuration ,[object Object],[object Object],[object Object],[object Object],<bean   class= &quot;org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping&quot; /> <bean   class= &quot;org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter&quot; /> <context:component-scan   base-package= &quot;com.alphacsp.webFrameworksPlayoff &quot; />
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Features:: View Technology
Configure the view technology ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],<bean   class = &quot;org.springframework.web.servlet.view.InternalResourceViewResolver&quot; > <property   name = &quot;viewClass&quot;   value = &quot;org.springframework.web.servlet.view. JstlView “  /> <property   name = &quot;prefix&quot;   value = &quot;/WEB-INF/views&quot; /> <property   name = &quot;suffix&quot;   value = &quot; . jsp&quot; /> </bean>
Features:: Page Flow mv.setView( new  RedirectView(  &quot;../phoneBook“ ,   true ));
Features:: Page Flow – Step 1 ,[object Object],[object Object],[object Object],[object Object],@RequestMapping ( value  =  &quot;/phoneBook&quot; ,  method  = RequestMethod. GET ) protected  ModelAndView setupForm()  throws  Exception { ModelAndView mv =  new  ModelAndView(); mv.addObject( &quot;contacts&quot; , Collections.<Contact>emptyList()); mv.addObject( &quot;contact&quot; ,  new  Contact()); … } PhoneBookController.java
Page Flow – Step 1 Contd. DispatcherServlet PhoneBookController Handle GET /demo/phoneBook 1 InternalResource ViewResolver 2 phoneBook /WEB-INF/views/phoneBook.jsp phoneBook
Page Flow – Step 2 ,[object Object],[object Object],[object Object],PhoneBookController.java ,[object Object],[object Object],[object Object],[object Object],[object Object],@RequestMapping ( value  =  &quot;/phoneBook&quot; ,  method  = RequestMethod. GET ) protected  ModelAndView setupForm()  throws  Exception { return   &quot; phoneBook   &quot; ; }
Page Flow – Step 2 Contd. DispatcherServlet PhoneBookController Handle GET /demo/phoneBook 1 InternalResource ViewResolver 2 phoneBook /WEB-INF/views/phoneBook.jsp phoneBook
Features:: Sorting & Pagination Search results pagination Sorting by column
Features:: Table Sorting ,[object Object],[object Object],[object Object],[object Object],<%@ taglib   uri = &quot; http://displaytag.sf.net &quot;   prefix = &quot; display &quot;   %> <display:table   name = &quot;contacts&quot;   class = &quot;grid&quot;   id = &quot;contacts&quot;   sort = &quot;list&quot;   pagesize = &quot;5&quot;   requestURI = &quot;/demo/phoneBook/list&quot; > <display:column   property =&quot; fullName&quot;   title = &quot;Name&quot;   class = &quot;grid&quot;   headerClass = &quot;grid&quot;   sortable = &quot;true&quot; /> … </display:table> phoneBook.jsp
Features:: Search Results Pagination ,[object Object],[object Object],[object Object],[object Object]
Features:: Form Binding ,[object Object],[object Object],[object Object],<td   class = &quot;searchLabel&quot; ><b><label   for = &quot;email&quot; > Email </label></b></td> <td   class = &quot;search&quot; > <form:input   id = &quot;email“  path = &quot;email&quot;   tabindex = &quot;2&quot;   /> </td> @RequestMapping ( value  =  &quot;/phoneBook/list&quot; ) protected  ModelAndView onSubmit( @ModelAttribute ( &quot;contact&quot; ) Contact contact,  BindingResult result)
Features:: Validations ,[object Object],[object Object],[object Object],[object Object]
Bean Validation Configuration ,[object Object],[object Object],<bean   id = &quot;configurationLoader&quot;   class = &quot;DefaultXmlBeanValidationConfigurationLoader&quot; > <property   name = &quot;resource&quot;   value = &quot;WEB-INF/validation.xml&quot;   /> </bean> <bean   id = &quot;beanValidator&quot;   class = &quot;org.springmodules.validation.bean.BeanValidator&quot; > <property   name = &quot;configurationLoader&quot;   ref = &quot;configurationLoader&quot;   /> </bean> 1 2
Bean Validation Configuration ,[object Object],[object Object],Validation.xml <validation> <class   name = &quot;com.alphacsp.webFrameworksPlayoff .  Contact &quot; > <property   name = &quot;email&quot; > <email   message = &quot;Please enter a valid email address&quot;   apply-if = &quot;email IS NOT BLANK&quot; /> </property> </class> </validation> Domain Model
Server Side Validations ,[object Object],[object Object],PhoneBookController.java @Autowired Validator validator; @RequestMapping ( value  =  &quot;/phoneBook/list&quot; ) protected  ModelAndView onSubmit( @ModelAttribute ( &quot;contact&quot; ) Contact  contact, BindingResult result)  throws  Exception { … validator.validate(contact, result); …
Client Side Validation ,[object Object],[object Object],<bean   id = &quot;clientSideValidator&quot; class = &quot;org.springmodules.validation.valang.ValangValidator&quot; > <property   name = &quot;valang&quot; > <value> <![CDATA[ { firstName : ? IS NOT BLANK OR department IS NOT BLANK  OR  email IS NOT BLANK : 'At least one field is required'} ]]> </value> </property> </bean>
Client Side Validation Contd. ,[object Object],[object Object],<script   type = &quot;text/javascript&quot;   id = &quot;contactValangValidator&quot; > new  ValangValidator( 'contact' , true,new  Array( new  ValangValidator.Rule(' firstName' , 'not implemented' ,   'At least one field is required' , function () { return  ((! this.isBlank((this.getPropertyValue( 'firstName' )), ( null ))) || (!   this.isBlank((this.getPropertyValue( 'department' )), ( null )))) || (!   this.isBlank((this.getPropertyValue( 'email' )), ( null )))}))) </script>   phoneBook.jsp <%@ taglib   uri = &quot;http://www.springmodules.org/tags/valang&quot;   prefix = &quot;valang&quot;   %> <script   type = &quot;text/javascript&quot;   src = &quot;/scripts/valang_codebase.js&quot; ></script> <form:form   method = &quot;POST&quot;   action = &quot;/demo/phoneBook/list&quot;   id = &quot;contact&quot;   name = &quot;contact&quot;   commandName = &quot;contact&quot;   > <valang:validate   commandName = &quot;contact&quot;   />
Features:: AJAX ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
AJAX:: Configuration ,[object Object],<dwr> <allow> <create   creator = &quot;spring&quot;   javascript = &quot;DepartmentServiceFacade&quot; > <param   name = &quot;beanName&quot;   value = &quot;departmentServiceFacade&quot; /> </create> </allow> </dwr> <bean   id =&quot;departmentServiceFacade&quot;  class = &quot;com.alphacsp.webFrameworksPlayoff.service.impl. MockRemoteDepartmentServiceImpl“  /> ,[object Object],DWR.xml
AJAX:: Autocomplete Component <script   type = &quot;text/javascript&quot;   src = &quot;/scripts/prototype/prototype.js&quot; ></script> <script   type = &quot;text/javascript&quot;   src = &quot;/scripts/script.aculo.us/controls.js&quot; ></script> <script   type = &quot;text/javascript&quot;   src = &quot;/scripts/autocomplete.js&quot; ></script> <td class=&quot;search&quot;> <form:input   id = &quot;department&quot;   path = &quot;department&quot;   tabindex = &quot;3&quot;   cssClass = &quot;searchField&quot; /> <div   id = &quot;departmentList&quot;   class = &quot;auto_complete&quot; ></div> <script   type = &quot;text/javascript&quot; > new  Autocompleter.DWR( 'department' ,  'departmentList' ,  updateList,  {valueSelector: nameValueSelector, partialChars:  0  }); </script> </td> phoneBook.jsp
Features:: Error Handling ,[object Object],[object Object],[object Object],[object Object]
Features:: I18n ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Features:: Documentation ,[object Object],[object Object],[object Object],[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary:: Pros ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary:: Cons ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary:: Roadmap ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Summary:: References ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object]

Contenu connexe

Tendances

springmvc-150923124312-lva1-app6892
springmvc-150923124312-lva1-app6892springmvc-150923124312-lva1-app6892
springmvc-150923124312-lva1-app6892
Tuna Tore
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC Framework
Guo Albert
 
Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
BG Java EE Course
 

Tendances (20)

Spring Framework - MVC
Spring Framework - MVCSpring Framework - MVC
Spring Framework - MVC
 
Spring MVC Architecture Tutorial
Spring MVC Architecture TutorialSpring MVC Architecture Tutorial
Spring MVC Architecture Tutorial
 
Java Server Faces (JSF) - Basics
Java Server Faces (JSF) - BasicsJava Server Faces (JSF) - Basics
Java Server Faces (JSF) - Basics
 
SpringMVC
SpringMVCSpringMVC
SpringMVC
 
springmvc-150923124312-lva1-app6892
springmvc-150923124312-lva1-app6892springmvc-150923124312-lva1-app6892
springmvc-150923124312-lva1-app6892
 
JSF Component Behaviors
JSF Component BehaviorsJSF Component Behaviors
JSF Component Behaviors
 
Java Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC FrameworkJava Server Faces + Spring MVC Framework
Java Server Faces + Spring MVC Framework
 
Jsf intro
Jsf introJsf intro
Jsf intro
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
Annotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVCAnnotation-Based Spring Portlet MVC
Annotation-Based Spring Portlet MVC
 
Introduction to Spring MVC
Introduction to Spring MVCIntroduction to Spring MVC
Introduction to Spring MVC
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
A Complete Tour of JSF 2
A Complete Tour of JSF 2A Complete Tour of JSF 2
A Complete Tour of JSF 2
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 
Spring MVC Framework
Spring MVC FrameworkSpring MVC Framework
Spring MVC Framework
 
Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)Spring MVC 3.0 Framework (sesson_2)
Spring MVC 3.0 Framework (sesson_2)
 
Java Server Faces (JSF) - advanced
Java Server Faces (JSF) - advancedJava Server Faces (JSF) - advanced
Java Server Faces (JSF) - advanced
 
Jsf2.0 -4
Jsf2.0 -4Jsf2.0 -4
Jsf2.0 -4
 
Boston 2011 OTN Developer Days - Java EE 6
Boston 2011 OTN Developer Days - Java EE 6Boston 2011 OTN Developer Days - Java EE 6
Boston 2011 OTN Developer Days - Java EE 6
 

Similaire à Spring MVC

Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran Toch
Adil Jafri
 
A Web Developer's Journey across different versions of ASP.NET
A Web Developer's Journey across different versions of ASP.NETA Web Developer's Journey across different versions of ASP.NET
A Web Developer's Journey across different versions of ASP.NET
Harish Ranganathan
 

Similaire à Spring MVC (20)

ASP.NET MVC introduction
ASP.NET MVC introductionASP.NET MVC introduction
ASP.NET MVC introduction
 
Introduction to JSF
Introduction toJSFIntroduction toJSF
Introduction to JSF
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Entity framework and how to use it
Entity framework and how to use itEntity framework and how to use it
Entity framework and how to use it
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
Introduction To ASP.NET MVC
Introduction To ASP.NET MVCIntroduction To ASP.NET MVC
Introduction To ASP.NET MVC
 
ASP.NET 3.5 SP1 (VSLive San Francisco 2009)
ASP.NET 3.5 SP1 (VSLive San Francisco 2009)ASP.NET 3.5 SP1 (VSLive San Francisco 2009)
ASP.NET 3.5 SP1 (VSLive San Francisco 2009)
 
Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran Toch
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
 
Build your website with angularjs and web apis
Build your website with angularjs and web apisBuild your website with angularjs and web apis
Build your website with angularjs and web apis
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
A Web Developer's Journey across different versions of ASP.NET
A Web Developer's Journey across different versions of ASP.NETA Web Developer's Journey across different versions of ASP.NET
A Web Developer's Journey across different versions of ASP.NET
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Ibm
IbmIbm
Ibm
 
Spring and DWR
Spring and DWRSpring and DWR
Spring and DWR
 
ASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp PresentationASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp Presentation
 
Overview of MVC Framework - by software outsourcing company india
Overview of MVC Framework - by software outsourcing company indiaOverview of MVC Framework - by software outsourcing company india
Overview of MVC Framework - by software outsourcing company india
 
Introduction to Alfresco Surf Platform
Introduction to Alfresco Surf PlatformIntroduction to Alfresco Surf Platform
Introduction to Alfresco Surf Platform
 
Struts Intro
Struts IntroStruts Intro
Struts Intro
 

Dernier

Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
vineshkumarsajnani12
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
daisycvs
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
ZurliaSoop
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 

Dernier (20)

joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...joint cost.pptx  COST ACCOUNTING  Sixteenth Edition                          ...
joint cost.pptx COST ACCOUNTING Sixteenth Edition ...
 
Arti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdfArti Languages Pre Seed Teaser Deck 2024.pdf
Arti Languages Pre Seed Teaser Deck 2024.pdf
 
Phases of Negotiation .pptx
 Phases of Negotiation .pptx Phases of Negotiation .pptx
Phases of Negotiation .pptx
 
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NSCROSS CULTURAL NEGOTIATION BY PANMISEM NS
CROSS CULTURAL NEGOTIATION BY PANMISEM NS
 
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
Chennai Call Gril 80022//12248 Only For Sex And High Profile Best Gril Sex Av...
 
Buy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail AccountsBuy gmail accounts.pdf buy Old Gmail Accounts
Buy gmail accounts.pdf buy Old Gmail Accounts
 
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
Horngren’s Cost Accounting A Managerial Emphasis, Canadian 9th edition soluti...
 
Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1Katrina Personal Brand Project and portfolio 1
Katrina Personal Brand Project and portfolio 1
 
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur CALL GIRL❤7091819311❤CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Cannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 UpdatedCannabis Legalization World Map: 2024 Updated
Cannabis Legalization World Map: 2024 Updated
 
How to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League CityHow to Get Started in Social Media for Art League City
How to Get Started in Social Media for Art League City
 
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165Lucknow Housewife Escorts  by Sexy Bhabhi Service 8250092165
Lucknow Housewife Escorts by Sexy Bhabhi Service 8250092165
 
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in PakistanChallenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
Challenges and Opportunities: A Qualitative Study on Tax Compliance in Pakistan
 
Falcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business PotentialFalcon Invoice Discounting: Unlock Your Business Potential
Falcon Invoice Discounting: Unlock Your Business Potential
 
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai KuwaitThe Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
The Abortion pills for sale in Qatar@Doha [+27737758557] []Deira Dubai Kuwait
 
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
Lundin Gold - Q1 2024 Conference Call Presentation (Revised)
 
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDINGBerhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
Berhampur 70918*19311 CALL GIRLS IN ESCORT SERVICE WE ARE PROVIDING
 
Falcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business GrowthFalcon Invoice Discounting: Empowering Your Business Growth
Falcon Invoice Discounting: Empowering Your Business Growth
 
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan CytotecJual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
Jual Obat Aborsi ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan Cytotec
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 

Spring MVC

  • 1.  
  • 2. Spring MVC Dror Bereznitsky Senior Consultant and Architect, AlphaCSP It’s Time
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Background:: Request Lifecycle Copyright 2006, www.springframework.org Handler
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Features:: Page Flow mv.setView( new RedirectView( &quot;../phoneBook“ , true ));
  • 22.
  • 23. Page Flow – Step 1 Contd. DispatcherServlet PhoneBookController Handle GET /demo/phoneBook 1 InternalResource ViewResolver 2 phoneBook /WEB-INF/views/phoneBook.jsp phoneBook
  • 24.
  • 25. Page Flow – Step 2 Contd. DispatcherServlet PhoneBookController Handle GET /demo/phoneBook 1 InternalResource ViewResolver 2 phoneBook /WEB-INF/views/phoneBook.jsp phoneBook
  • 26. Features:: Sorting & Pagination Search results pagination Sorting by column
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. AJAX:: Autocomplete Component <script type = &quot;text/javascript&quot; src = &quot;/scripts/prototype/prototype.js&quot; ></script> <script type = &quot;text/javascript&quot; src = &quot;/scripts/script.aculo.us/controls.js&quot; ></script> <script type = &quot;text/javascript&quot; src = &quot;/scripts/autocomplete.js&quot; ></script> <td class=&quot;search&quot;> <form:input id = &quot;department&quot; path = &quot;department&quot; tabindex = &quot;3&quot; cssClass = &quot;searchField&quot; /> <div id = &quot;departmentList&quot; class = &quot;auto_complete&quot; ></div> <script type = &quot;text/javascript&quot; > new Autocompleter.DWR( 'department' , 'departmentList' , updateList, {valueSelector: nameValueSelector, partialChars: 0 }); </script> </td> phoneBook.jsp
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.