SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
AjaxAnywhere

   Presented by Angel Ruiz
     Canberra “J” Users group
          13 March 2013
Why fork it?
Why fork it?
How does it work?
How does it work?
How does it work?
                                       Web Client



  HTTP Response                                                    HTTP Request
 Content-Type=text/html



                                       Web Server

                 HttpServletResponse                HttpServletRequest


                 Stream                                        Handle

                                       Render
                          HTML                      Controller/Servlet
How does it work?
How does it work?
How does it work?
How does it work?
                                             Web Client

     HTTP Response
                                                                            HTTP Request
  Content-Type=text/xml


                 HttpServletReponse         Web Server             HttpServletRequest

                            Stream

                        XML
                                                                              Intercept




                                     AjaxAnywhere Servlet Filter
                                                                                Continue with
                                                                              Response Wrapper
             HttpServletResponseWrapper                            HttpServletRequest

                           Stream                                            Handle

                                           Render
                       HTML                                        Controller/Servlet
How does it work?
                                             Web Client

     HTTP Response
                                                                            HTTP Request
  Content-Type=text/xml


                 HttpServletReponse         Web Server             HttpServletRequest

                            Stream

                        XML
                                                                              Intercept




                                     AjaxAnywhere Servlet Filter
                                                                                Continue with
                                                                              Response Wrapper
             HttpServletResponseWrapper                            HttpServletRequest

                           Stream                                            Handle

                                           Render
                       HTML                                        Controller/Servlet
How does it work?
                                             Web Client

     HTTP Response
                                                                            HTTP Request
  Content-Type=text/xml


                 HttpServletReponse         Web Server             HttpServletRequest

                            Stream

                        XML
                                                                              Intercept




                                     AjaxAnywhere Servlet Filter
                                                                                Continue with
                                                                              Response Wrapper
             HttpServletResponseWrapper                            HttpServletRequest

                           Stream                                            Handle

                                           Render
                       HTML                                        Controller/Servlet
How does it work?
                                             Web Client

     HTTP Response
                                                                            HTTP Request
  Content-Type=text/xml


                 HttpServletReponse         Web Server             HttpServletRequest

                            Stream

                        XML
                                                                              Intercept




                                     AjaxAnywhere Servlet Filter
                                                                                Continue with
                                                                              Response Wrapper
             HttpServletResponseWrapper                            HttpServletRequest

                           Stream                                            Handle

                                           Render
                       HTML                                        Controller/Servlet
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
Main aims?
How does it do it?
1 – Mark your form, input elements or links
How does it do it?
1 – Mark your form, input elements or links




2 – Mark the zones to be refreshed
Installation
1 – Add dependency with AjaxAnywhere library
   <dependency>
      <groupId>com.nerderg.ajaxanywhere</groupId>
      <artifactId>ajaxanywhere</artifactId>
      <version>2.0</version>
   </dependency>
Installation
1 – Add dependency with AjaxAnywhere library
   <dependency>
      <groupId>com.nerderg.ajaxanywhere</groupId>
      <artifactId>ajaxanywhere</artifactId>
      <version>2.0</version>
   </dependency>


2 – Declare Filter
Installation
1 – Add dependency with AjaxAnywhere library
   <dependency>
      <groupId>com.nerderg.ajaxanywhere</groupId>
      <artifactId>ajaxanywhere</artifactId>
      <version>2.0</version>
   </dependency>


2 – Declare Filter




3 – Import Javascript libraries
   <script src="<c:url value="/js/jquery/jquery-1.9.1.min.js"/>"></script>
   <script src="<c:url value="/js/jquery-aa.js"/>"></script>
EXAMPLES



www.AjaxAnywhere.com
Some conclusions
Some conclusions


            Does not
          require you to
           modify your
            controller
Some conclusions


            Does not
          require you to
           modify your
            controller
Some conclusions


            Does not
          require you to
           modify your
            controller
Some conclusions


            Does not
          require you to
           modify your
            controller
Some conclusions


            Does not
          require you to
           modify your
            controller
Dependencies
Remaining Tasks
   TO DO    WIP   DONE



                         Create
                          Doco
Thank you for listening!!!

   AjaxAnywhere
         “Now in a Maven repository near you”




             @aruizca
             @nerdErg

Contenu connexe

Tendances (19)

Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Servlets
ServletsServlets
Servlets
 
Servlet by Rj
Servlet by RjServlet by Rj
Servlet by Rj
 
Servlets
ServletsServlets
Servlets
 
Servlet/JSP course chapter 1: Introduction to servlets
Servlet/JSP course chapter 1: Introduction to servletsServlet/JSP course chapter 1: Introduction to servlets
Servlet/JSP course chapter 1: Introduction to servlets
 
Knowledge Sharing : Java Servlet
Knowledge Sharing : Java ServletKnowledge Sharing : Java Servlet
Knowledge Sharing : Java Servlet
 
E-MARKETING E-ZONE PPT Using ADVANCED JAVA
E-MARKETING E-ZONE PPT Using ADVANCED JAVAE-MARKETING E-ZONE PPT Using ADVANCED JAVA
E-MARKETING E-ZONE PPT Using ADVANCED JAVA
 
Servletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,postServletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,post
 
Jsp in Servlet by Rj
Jsp in Servlet by RjJsp in Servlet by Rj
Jsp in Servlet by Rj
 
Rack
RackRack
Rack
 
Svcc2009 Async Ws
Svcc2009 Async WsSvcc2009 Async Ws
Svcc2009 Async Ws
 
Weblogic
WeblogicWeblogic
Weblogic
 
An Introduction To Java Web Technology
An Introduction To Java Web TechnologyAn Introduction To Java Web Technology
An Introduction To Java Web Technology
 
Listeners and filters in servlet
Listeners and filters in servletListeners and filters in servlet
Listeners and filters in servlet
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
 
Servlets
ServletsServlets
Servlets
 
java Servlet technology
java Servlet technologyjava Servlet technology
java Servlet technology
 
Servlet in java , java servlet , servlet servlet and CGI, API
Servlet in java , java servlet , servlet servlet and CGI, APIServlet in java , java servlet , servlet servlet and CGI, API
Servlet in java , java servlet , servlet servlet and CGI, API
 
Spring Mvc Rest
Spring Mvc RestSpring Mvc Rest
Spring Mvc Rest
 

Similaire à AjaxAnywhere (Reloaded) library

Http Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responsesHttp Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responsesbharathiv53
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteJava Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteTushar B Kute
 
UNIT-3 Servlet
UNIT-3 ServletUNIT-3 Servlet
UNIT-3 Servletssbd6985
 
Web Tech Java Servlet Update1
Web Tech   Java Servlet Update1Web Tech   Java Servlet Update1
Web Tech Java Servlet Update1vikram singh
 
Java Servlet
Java ServletJava Servlet
Java ServletYoga Raja
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache TomcatAuwal Amshi
 
SERVER SIDE PROGRAMMING
SERVER SIDE PROGRAMMINGSERVER SIDE PROGRAMMING
SERVER SIDE PROGRAMMINGPrabu U
 
Server-side Technologies in Java
Server-side Technologies in JavaServer-side Technologies in Java
Server-side Technologies in JavaAnirban Majumdar
 
There is time for rest
There is time for rest There is time for rest
There is time for rest SoftServe
 
JSP- JAVA SERVER PAGES
JSP- JAVA SERVER PAGESJSP- JAVA SERVER PAGES
JSP- JAVA SERVER PAGESYoga Raja
 

Similaire à AjaxAnywhere (Reloaded) library (20)

Web designing avdhesh
Web designing avdheshWeb designing avdhesh
Web designing avdhesh
 
Http Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responsesHttp Server Programming in JAVA - Handling http requests and responses
Http Server Programming in JAVA - Handling http requests and responses
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B KuteJava Servlet Programming under Ubuntu Linux by Tushar B Kute
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
 
Java servlets
Java servletsJava servlets
Java servlets
 
Chap4 4 1
Chap4 4 1Chap4 4 1
Chap4 4 1
 
Servlet
Servlet Servlet
Servlet
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
JAVA Servlets
JAVA ServletsJAVA Servlets
JAVA Servlets
 
UNIT-3 Servlet
UNIT-3 ServletUNIT-3 Servlet
UNIT-3 Servlet
 
java
java java
java
 
Web Tech Java Servlet Update1
Web Tech   Java Servlet Update1Web Tech   Java Servlet Update1
Web Tech Java Servlet Update1
 
Java Servlet
Java ServletJava Servlet
Java Servlet
 
Asif
AsifAsif
Asif
 
Web container and Apache Tomcat
Web container and Apache TomcatWeb container and Apache Tomcat
Web container and Apache Tomcat
 
SERVER SIDE PROGRAMMING
SERVER SIDE PROGRAMMINGSERVER SIDE PROGRAMMING
SERVER SIDE PROGRAMMING
 
Servlet
ServletServlet
Servlet
 
gayathri.pptx
gayathri.pptxgayathri.pptx
gayathri.pptx
 
Server-side Technologies in Java
Server-side Technologies in JavaServer-side Technologies in Java
Server-side Technologies in Java
 
There is time for rest
There is time for rest There is time for rest
There is time for rest
 
JSP- JAVA SERVER PAGES
JSP- JAVA SERVER PAGESJSP- JAVA SERVER PAGES
JSP- JAVA SERVER PAGES
 

Dernier

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

AjaxAnywhere (Reloaded) library

  • 1. AjaxAnywhere Presented by Angel Ruiz Canberra “J” Users group 13 March 2013
  • 2.
  • 3.
  • 6. How does it work?
  • 7. How does it work?
  • 8. How does it work? Web Client HTTP Response HTTP Request Content-Type=text/html Web Server HttpServletResponse HttpServletRequest Stream Handle Render HTML Controller/Servlet
  • 9. How does it work?
  • 10. How does it work?
  • 11. How does it work?
  • 12. How does it work? Web Client HTTP Response HTTP Request Content-Type=text/xml HttpServletReponse Web Server HttpServletRequest Stream XML Intercept AjaxAnywhere Servlet Filter Continue with Response Wrapper HttpServletResponseWrapper HttpServletRequest Stream Handle Render HTML Controller/Servlet
  • 13. How does it work? Web Client HTTP Response HTTP Request Content-Type=text/xml HttpServletReponse Web Server HttpServletRequest Stream XML Intercept AjaxAnywhere Servlet Filter Continue with Response Wrapper HttpServletResponseWrapper HttpServletRequest Stream Handle Render HTML Controller/Servlet
  • 14. How does it work? Web Client HTTP Response HTTP Request Content-Type=text/xml HttpServletReponse Web Server HttpServletRequest Stream XML Intercept AjaxAnywhere Servlet Filter Continue with Response Wrapper HttpServletResponseWrapper HttpServletRequest Stream Handle Render HTML Controller/Servlet
  • 15. How does it work? Web Client HTTP Response HTTP Request Content-Type=text/xml HttpServletReponse Web Server HttpServletRequest Stream XML Intercept AjaxAnywhere Servlet Filter Continue with Response Wrapper HttpServletResponseWrapper HttpServletRequest Stream Handle Render HTML Controller/Servlet
  • 23. How does it do it? 1 – Mark your form, input elements or links
  • 24. How does it do it? 1 – Mark your form, input elements or links 2 – Mark the zones to be refreshed
  • 25. Installation 1 – Add dependency with AjaxAnywhere library <dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency>
  • 26. Installation 1 – Add dependency with AjaxAnywhere library <dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency> 2 – Declare Filter
  • 27. Installation 1 – Add dependency with AjaxAnywhere library <dependency> <groupId>com.nerderg.ajaxanywhere</groupId> <artifactId>ajaxanywhere</artifactId> <version>2.0</version> </dependency> 2 – Declare Filter 3 – Import Javascript libraries <script src="<c:url value="/js/jquery/jquery-1.9.1.min.js"/>"></script> <script src="<c:url value="/js/jquery-aa.js"/>"></script>
  • 30. Some conclusions Does not require you to modify your controller
  • 31. Some conclusions Does not require you to modify your controller
  • 32. Some conclusions Does not require you to modify your controller
  • 33. Some conclusions Does not require you to modify your controller
  • 34. Some conclusions Does not require you to modify your controller
  • 36. Remaining Tasks TO DO WIP DONE Create Doco
  • 37. Thank you for listening!!! AjaxAnywhere “Now in a Maven repository near you” @aruizca @nerdErg