ebook img

Coding an Ajax Application with Struts 2 - The Ajax Experience PDF

77 Pages·2007·0.74 MB·English
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Coding an Ajax Application with Struts 2 - The Ajax Experience

Ajax on Struts: Coding an Ajax Application with Struts 2 Struts University Series For the latest version of this presentation, visit www.StrutsUniversity.org Abstract Struts is Java's most popular web framework. Ajax is the web's hottest user interface. What happens when we put Struts on Ajax? During the session, we will cover Integrating an Ajax UI with Struts 2  Using Yahoo User Interface (YUI) Library  Using Struts to provide services to Ajax UI  What is Ajax? Originally, acronym for "Asynchronous JavaScript And XML." Technique, rather than a framework (such as Struts). Allows web pages to work like GUI apps Already used by Microsoft and Google, among many, many others. What was life like before Ajax? "web page as a flat document" To mimic GUI desktop apps 1 send all data with (a lot of) JavaScript  2 constant form submits back to the server  Ajax gives you the best of both worlds: dynamic web pages on the client  server-side Java application  How does Ajax work? Ajax adds a "background" call to the server 1 XMLHttpRequest requests content  asynchronously. 2 Content can be anything; JavaScript  updates page. 3 Triggered by JavaScript events: onclick,  onchange, onblur, ... How do we process server-side requests? XHR request looks like conventional request Can be handled by any server-side technology PHP, JSP or Java servlets, ASP or .NET  handlers Or by remote procedure protocol like JSON-  RPC Key point is that result returns the expected  payload XML, text, HTML, JSON  What is Apache Struts? Free open-source framework for creating Java web applications Provides three major components Request handler  Response handler  Tag libraries for JSP, Freemarker, and  Velocity Can we use Ajax with a Struts application? XHR is just another request/response Struts can stream data as a response Use Ajax JSP tag libraries Use plain-vanilla Ajax libraries Why use Apache Struts? Mature, well-supported, well-understood Provides input validation and data conversion Interacts well with Spring, Hibernate, et al Defacto standard for Java web applications

Description:
What happens when we put Struts on Ajax? During the session, we will cover. ○ Integrating an Ajax UI with Struts 2. ○ Using Yahoo User Interface (YUI) Library.
See more

The list of books you might like

book image

The Strength In Our Scars

Bianca Sparacino
·2018
·0.17 MB

book image

The 48 Laws of Power

Robert Greene
·1998
·2.84 MB

book image

The Silent Patient

Alex Michaelides
·0.52 MB

book image

Mind Management, Not Time Management

David Kadavy
·2020
·0.58 MB

book image

Risk Factors in Depression

Keith S. Dobson, David J. A Dozois
·506 Pages
·2008
·3.173 MB

book image

Greek Government Gazette: Part 4, 2005 no. 906

The Government of the Hellenic Republic
·2005
·1.1 MB

book image

La gracia de los reyes

Ken Liu [Liu, Ken]
·2016
·0.7637 MB

book image

Bursa Ticaret ve Sanayi Odası

301 Pages
·2010
·17.53 MB

book image

Só o Amor Liberta

Digital Source
·211 Pages
·2008
·1.37 MB

book image

Greek Government Gazette: Part 7, 2006 no. 896

The Government of the Hellenic Republic
·2006
·0.33 MB

book image

bölüm 12

261 Pages
·2015
·4.76 MB

book image

Un canalla que no lo era

Sarah MacLean
·2017
·0.4265 MB

book image

C anton © bser U cr

46 Pages
·2010
·71.89 MB

book image

Stimme und Sprache

K. Goerttler (auth.)
·17 Pages
·1972
·0.919 MB

book image

C anton €>b£crUer

49 Pages
·2010
·65.21 MB

book image

Quantenmechanik [Quantum Mech - IN GERMAN]

T. Fliessbach, H. Walliser
·400 Pages
·2005
·25.532 MB

book image

Südtirol/Alto Adige/Südtirol

122 Pages
·2012
·0.75 MB