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

Servletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,postServletarchitecture,lifecycle,get,post
Servletarchitecture,lifecycle,get,post
vamsi krishna
 
An Introduction To Java Web Technology
An Introduction To Java Web TechnologyAn Introduction To Java Web Technology
An Introduction To Java Web Technology
vikram singh
 
Jsp and Servlets
Jsp and ServletsJsp and Servlets
Jsp and Servlets
Raghu nath
 

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

Web Tech Java Servlet Update1
Web Tech   Java Servlet Update1Web Tech   Java Servlet Update1
Web Tech Java Servlet Update1
vikram singh
 

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

Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
Muhammad Subhan
 

Dernier (20)

Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Event-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream ProcessingEvent-Driven Architecture Masterclass: Challenges in Stream Processing
Event-Driven Architecture Masterclass: Challenges in Stream Processing
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 

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