• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
The Script.aculo.us JavaScript Library Part I: Ajax-Specific ...
 

The Script.aculo.us JavaScript Library Part I: Ajax-Specific ...

on

  • 1,103 views

 

Statistics

Views

Total Views
1,103
Views on SlideShare
1,103
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    The Script.aculo.us JavaScript Library Part I: Ajax-Specific ... The Script.aculo.us JavaScript Library Part I: Ajax-Specific ... Document Transcript

    • © 2009 Marty Hall The Script.aculo.us JavaScript Library Part I: Ajax-Specific Features j p Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/Course-Materials/ajax.html p j Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location. © 2009 Marty Hall For live Ajax & GWT training, see training courses at http://courses.coreservlets.com/. t htt // l t / Taught by the author of Core Servlets and JSP, More Servlets and JSP and this tutorial. Available at public JSP, tutorial venues, or customized versions can be held on-site at your organization. •C Courses d developed and t l d d taught b M t H ll ht by Marty Hall – Java 6, intermediate/beginning servlets/JSP, advanced servlets/JSP, Struts, JSF 1.x & 2.0, Ajax, GWT, custom mix of topics – Ajax courses can concentrate on EElibrary (jQuery, Prototype/Scriptaculous, Ext-JS, Dojo) or survey several Customized Java one Training: http://courses.coreservlets.com/ • Courses developed and taught by coreservlets.com experts (edited by Marty) Servlets, – Spring, Hibernate/JPA, 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. JSP, JSF 1.x & JSF EJB3, Ruby/Rails Developed and taught by well-known author and developer. At public venues or onsite at your location. Contact hall@coreservlets.com for details
    • Topics in This Section • Overview of Scriptaculous • Installation and documentation • Autocomplete textfields – Local version – Ajax version • In place Editor In-place – Free-text values – Values from combo box 5 © 2009 Marty Hall Introduction Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location.
    • Overview • Foundation – B il on top of Prototype Built fP • Ajax-specific features – Autocompleting textfields • Textfields with dropdown list of matching choices • Covered in first half of this section – In-place editors • Clickable text that you can edit and send to server • Covered in second half of this section • General features – Visual effects (fade in, fade out, highlighting) • Covered in next section – Drag and drop • Covered in later section 7 Downloading and Installation • Download – http://script.aculo.us/downloads • Unzip and grab .js files out of “src” folder – Usually put in subdirectory of scripts since there are many files • This tutorial corresponds to Scriptaculous 1.8.1 • Online documentation – http://wiki.script.aculo.us/ • Online forum – htt // http://groups.google.com/group/rubyonrails-spinoffs l / / b il i ff • Prerequisite – Scriptaculous requires Prototype. I am using 1.6. Prototype 16 • So your HTML page needs to load both libraries 8 • See separate lectures on Prototype
    • © 2009 Marty Hall Autocompleter.Local Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location. Autocompleter.Local • Idea – Specify JavaScript array that has choices for textfield. Dropdown textfield box shown with choices that start with what has been typed so far • http://wiki.script.aculo.us/scriptaculous/show/Autocompletion • Steps – Make an instance of Autocompleter.Local • new Autocompleter.Local(textFieldID, divID, array) – Enable it when page loads • window onload = function() { new Autocompleter Local( ); }; window.onload Autocompleter.Local(...); • Prototype gurus might use document.observe("dom:loaded", ...) instead of window.onload – Make an empty div with a designated CSS name • <di id "di ID" class="someCSSName"></div> <div id="divID" l " CSSN "></di > – Attach style sheet that makes div absolutely positioned, puts border on div, turns off bullets for ul lists, and makes a different background color for li.selected 10
    • Autocompleter.Local Example: JavaScript var langString = "Java,C,C++,PHP,Visual Basic,..."; var langArray = languageString split(","); languageString.split( ); window.onload = function() { new Autocompleter.Local( langField1 , "langMenu1", Autocompleter Local("langField1", langMenu1 , langArray); }; function googleSearch(id) { var language = getValue(id); window.location.href = "http://www.google.com/search?q=" + language; } function getValue(id) { return(escape(document.getElementById(id).value)); 11 } Autocompleter.Local Example: HTML Header <!DOCTYPE ...> p // g/ / <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>Scriptaculous and Autocomplete</title> <link rel="stylesheet" href="./css/styles.css" type="text/css"/> / / <script src="./scripts/prototype.js" type="text/javascript"></script> <script s c sc pt src= "./scripts/scriptaculous/scriptaculous.js?load=effects,controls" type="text/javascript"></script> <script src="./scripts/autocomplete.js" type="text/javascript"></script> / / </head> If you know you will only use certain parts of scriptaculous library, you can save library download time by loading only some of it. To load all of it, just omit the "load=" part. I.e., <script src=".../scriptaculous.js"...></script>. Autocomplete is in controls, but relies on effects internally. 12
    • Autocompleter.Local Example: Main HTML <body> ... <fieldset> <legend>Autocomplete.Local</legend> <form action="#"> <label for="langField1">Programming language:</label> <input type="text" id="langField1"/> <input type="button" value="Search on Language" onclick="googleSearch('langField1')"/><br/> <div id="langMenu1" class="autocomplete"></div> </form> </fieldset> </fi ld t> ... </body></html> 13 Autocompleter.Local Example: CSS .autocomplete { position: absolute; color: #333333; background-color: #ffffff; border: 1px solid #666666; font-family: Arial, sans-serif; overflow: hidden; } .autocomplete ul { padding: 0; margin: 0; a g : list-style: none; overflow: auto; } 14
    • Autocompleter.Local Example: CSS (Continued) .autocomplete li { display: block; white-space: nowrap; cursor: pointer; margin: 0px; padding-left: 5px; padding-right: 5px; border: 0px solid #ffffff; } .autocomplete li.selected { bac g ou d co o : #cceeff; background-color: #ccee ; border-top: 1px solid #99bbcc; border-bottom: 1px solid #99bbcc; } 15 Autocompleter.Local Example: Results 16
    • © 2009 Marty Hall Ajax.Autocompleter Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location. Ajax.Autocompleter • Idea – Specify URL that computes list of choices. Dropdown box shown choices with choices that start with what has been typed so far • http://wiki.script.aculo.us/scriptaculous/show/Autocompletion • Steps: summary – Same steps as with Autocompleter.Local except • Specify url instead of array (url should return <ul> list) • Use class Ajax.Autocompleter instead of Autocompleter.Local • Steps – Make an instance of Ajax.Autocompleter • new Ajax.Autocompleter(textFieldID, divID, url) j p ( ) – Enable it when page loads • window.onload = function() { new Ajax.Autocompleter(...); }; – Make an empty div with a designated CSS name • <div id="divID" class="someCSSName"></div> – Attach same style sheet as with Autocompleter.Local 18
    • Ajax.Autocompleter Example: JavaScript var langString = "Java,C,C++,PHP,Visual Basic,..."; var langArray = languageString split(","); languageString.split( ); window.onload = function() { new Autocompleter Local("langField1" "langMenu1" Autocompleter.Local("langField1", "langMenu1", langArray); new Ajax.Autocompleter("langField2", "langMenu2", "languages"); "l ") }; This is the relative URL. By default it will be passed POST URL data of name-of-langField2=value-of-langField2 19 Ajax.Autocompleter Example: HTML <fieldset> <legend>Ajax.Autocomplete</legend> <legend>Ajax Autocomplete</legend> <form action="#"> <label for="langField2">Programming language:</label> <input type="text" id="langField2" name="langPrefix"/> p yp g g <input type="button" value="Search on Language" onclick="googleSearch('langField2')"/><br/> <div id="langMenu2" class="autocomplete"></div> </form> </fieldset> By default, name of field is default parameter name 20
    • Ajax.Autocompleter Example: Servlet public class LanguageCompleter extends HttpServlet { private static final String languageString = "Java,C,C++,..."; private static final String[] languageArray = languageString.split(","); public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setHeader("Cache-Control", "no-cache"); response.setHeader("Pragma", "no-cache"); The name (not id!) of textfield was "langPrefix". String languagePrefix = request.getParameter("langPrefix"); List<String> languages = findLanguages(languagePrefix); g g g g g g g request.setAttribute("languages", languages); String outputPage = "/WEB-INF/results/language-list.jsp"; RequestDispatcher dispatcher = q p p request.getRequestDispatcher(outputPage); dispatcher.include(request, response); } 21 Ajax.Autocompleter Example: Servlet (Continued) public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); } private List<String> findLanguages(String languagePrefix) { languagePrefix = languagePrefix.toUpperCase(); List<String> languages = new ArrayList<String>(); for(String language: languageArray) { if(language.toUpperCase().startsWith(languagePrefix)) { languages.add(language); } } return(languages); } } 22
    • Ajax.Autocompleter Example: JSP <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix= c prefix="c" %> <ul> <c:forEach var="language" items="${languages}"> <li>${language}</li> </c:forEach> </ul> Return value of URL should be <ul> <li>...</li> ... <li>...</li> </ul> Style sheet on client will suppress the bullets. 23 Ajax.Autocompleter Example: web.xml web xml <servlet> <servlet name>LanguageCompleter</servlet name> <servlet-name>LanguageCompleter</servlet-name> <servlet-class> coreservlets.LanguageCompleter </servlet class> </servlet-class> </servlet> <servlet-mapping> <servlet name>LanguageCompleter</servlet name> <servlet-name>LanguageCompleter</servlet-name> <url-pattern>/languages</url-pattern> </servlet-mapping> 24
    • Ajax.Autocompleter Example: Results 25 © 2009 Marty Hall Autocompleter Options Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location.
    • Autocompleter Options • Idea – Autocompleter.Local and Ajax.Autocompleter accept an options array as the fourth argument • new Ajax.Autocompleter(fieldID, divID url Ajax Autocompleter(fieldID divID, url, { opt1: ..., opt2: ..., ... }); • Legal properties for both classes – autoSelect (default: false) • Should value automatically be inserted into textfield if there is only one matching choice? y g – frequency (default: 0.4) • Interval in seconds between attempts to autocomplete – minChars (default: 1) i Ch (d f lt • The number of characters before autocompletion kicks in 27 Autocompleter Options (Continued) • Options for Autocompleter.Local – choices (default 10) h i (d f l • Maximum number of entries to display – partialSearch (default true) • Should match be made at beginning of any word? False means to match beginning of first word only. – partialChars (default 2) • Number of characters before partial search kicks in. When number of chars is greater or equal to minChars but less than partialChars, you get a non-partial search (first word). – f llSearch (default false) fullSearch (defa lt • Should match be anywhere? False means to match only at the beginning of each candidate. – selector (default: function that searches array) • Function that does real work of doing match and building ul list. 28
    • Autocompleter Options (Continued) • Options for Ajax.Autocompleter – i di indicator (default: none) (d f l ) • Id of element that should be shown while waiting for server result, then hidden again – paramName (d f lt name of textfield) N (default: f t tfi ld) • parameter name sent to server (parameter value is textfield value, of course) – parameters (default: empty) t (d f lt t ) • Extra string sent to server (fixed parameters) – tokens (default: empty) • Array of delimeters: each entry outside delimeters is autocompleted separately – afterUpdateElement (default: none) • Function to run when user makes choice. Lets you respond automatically to selections. 29 Autocompleter Options Example: JavaScript var langString = "Java,C,C++,PHP,Visual Basic,..."; var langArray = languageString split(","); languageString.split( ); window.onload = function() { new Autocompleter.Local( langField1 , "langMenu1", Autocompleter Local("langField1", langMenu1 , langArray); new Ajax.Autocompleter("langField2", "langMenu2", "languages"); languages ); new Ajax.Autocompleter("langField3", "langMenu3", "languages-slow", { indicator: "indicatorRegion", g , paramName: "langPrefix"}); }; 30
    • Autocompleter Options Example: HTML <fieldset> <legend>Ajax.Autocomplete <legend>Ajax Autocomplete with Indicator</legend> <form action="#"> <span id="indicatorRegion" style="display:none;"> <img src="images/busy-indicator.gif"/> g g y g Loading... </span><br/> <label for="langField3">Programming language:</label> <input type="text" id="langField3" name="bad-name"/> <input type="button" value="Search on Language" onclick="googleSearch('langField3')"/><br/> <div id "l <di id="langMenu3" class="autocomplete"></div> M 3" l " t l t "></di > </form> </fieldset> 31 Autocompleter Options Example: Java public class SlowLanguageCompleter extends LanguageCompleter { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { Thread.sleep(2000); } catch(InterruptedException ie) {} super.doGet(request, response); } } 32
    • Autocompleter Options Example: web.xml web xml <servlet> <servlet name>SlowLanguageCompleter</servlet name> <servlet-name>SlowLanguageCompleter</servlet-name> <servlet-class> coreservlets.SlowLanguageCompleter </servlet class> </servlet-class> </servlet> <servlet-mapping> <servlet name>SlowLanguageCompleter</servlet name> <servlet-name>SlowLanguageCompleter</servlet-name> <url-pattern>/languages-slow</url-pattern> </servlet-mapping> 33 Autocompleter Options Example: Results 34
    • © 2009 Marty Hall In-Place Editors Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location. In-Place Editors • Idea – Text that you can click on, edit, and send to server on edit – Text is highlighted when mouse over it – Text passed to server as “value” request parameter • Text shown as “Saving ” while waiting for server Saving... – Value returned from server is new textual value • Might not be exactly what user entered • Basics – new Ajax.InPlaceEditor("id-of-element", "url"); – Click on text to get editable textfield – new Ajax.InPlaceCollectionEditor ("id-of-element", "url" { collection: ["Option1", ... "OptionN"]}); – Click on text to get select box of options – Documentation • http://wiki.script.aculo.us/scriptaculous/show/InPlaceEditing 36
    • InPlaceEditor Example • JavaScript window.onload = function() { new Ajax.InPlaceEditor("element-to-edit", "show-value.jsp"); }; • HTML <h2 id="element-to-edit">Here is Some Text</h2> • JSP <% try { Thread.sleep(2000); } catch(InterruptedException i ) {} t h(I t t dE ti ie) %>You sent "${param.value}" 37 InPlaceEditor Example: Results 38
    • InPlaceCollectionEditor Example • JavaScript window.onload = f i d l d function() { ti () new Ajax.InPlaceEditor("element-to-edit", "show-value.jsp"); new Ajax.InPlaceCollectionEditor ("flyer-status", "show-value.jsp", { collection: ["Silver", "Gold", "Platinum", "Wood", "Hay", "Stubble"]}); }; • HTML <h2>Frequent Flyer Status: <span id="flyer-status">Silver</span></h2> • JSP <% try { Thread.sleep(2000); y p( ) } catch(InterruptedException ie) {} %>You sent "${param.value}" 39 InPlaceCollectionEditor Example: Results 40
    • In-Place Editor Options: Basic Options • okButton (default: true) – Should you use "ok" button? Often set to false. • okText (default: "ok") – T of confirmation button Text f fi i b • cancelLink (default: true) – Should you have "cancel" link? cancel • savingText (default "Saving...") – Text to show while waiting for server response • clickToEditText (default: "Click to edit") – Text to show in tooltip when mouse hovers over text p • paramName (default: "value") 41 – Request parameter name In-Place Editor Options: Ajax.Request Ajax Request Options • Idea – You can use ajaxOptions to specify an options object that gets passed to the underlying Ajax.Request object • new Ajax InPlaceEditor("id", "url", { ajaxOptions: { blah }); Ajax.InPlaceEditor( id url • For {blah} above, you can use all of the same options as discussed in the earlier section on the Prototype Ajax libraries • Most important usage: extra parameters – You are editing a first name, but what customer id does that first name go with? • var params = { param1: $("div-id").innerHTML, p param2: $F("textfield-id")}; ( )} • var options = { parameters: params } • new Ajax.InPlaceEditor("id", "url", { ajaxOptions: options }); 42
    • In-Place Editor Options: Collection Options • collection – Array of choices • loadCollectionURL – URL that returns JavaScript array of choices h J S i f h i • loadCollectionText – Text to show while waiting for server to send array of choices 43 In-Place Editor Options: Styling Options • highlightColor (default: pale yellow) – Color to show when mouse is over and when result first comes back from server • highlightendColor (default: white) – Color to show temporarily when hightlighting finishes • hoverClassName, formClassName, loadingClassName, savingClassName • (defaults: none, "inplaceeditor-form", "inplaceeditor- loading", "inplaceeditor-saving") l di " "i l dit i ") – CSS name of elements at different stages • formID – id of form that is created when you click 44
    • In-Place Editor Options: Callback Options • onEnterHover – Defaults to setting background color • onLeaveHover – D f l to fading out background color Defaults f di b k d l • onEnterEditMode • onFailure – Defaults to showing error message • onComplete – This is often used when you are doing server-side validation of values. You can check a custom header from the server and show error message if needed. • onLeaveEditMode 45 Advanced Example: JavaScript window.onload = function() { var options = { okButton: false, clickToEditText: "Click to update your info" }; new Ajax.InPlaceEditor("firstName", "update-firstName", options); new Ajax InPlaceEditor("lastName", Ajax.InPlaceEditor( lastName "update-lastName", options); new Ajax.InPlaceEditor("email", j ( , "update-email", options); new Ajax.InPlaceEditor("flyerNum", "update-flyerNum", " d t fl N " options); }; 46
    • Advanced Example: Servlet for Initial Page public class ShowTraveler extends HttpServlet { p public void doGet(HttpServletRequest request, p q q HttpServletResponse response) throws ServletException, IOException { response.setHeader("Cache-Control", "no-cache"); response.setHeader( Pragma , no cache ); response.setHeader("Pragma", "no-cache"); HttpSession session = request.getSession(); Traveler traveler = (Traveler)session.getAttribute("traveler"); if (traveler == null) { traveler = new Traveler(); session.setAttribute("traveler", traveler); } String outputPage = "/WEB-INF/results/show-traveler.jsp"; RequestDispatcher dispatcher = request.getRequestDispatcher(outputPage); dispatcher.include(request, response); } } 47 Advanced Example: JSP for Initial Page ... <ul style="font-size: 18px"> style font size: 18px > <li>First name: <span id="firstName">${traveler.firstName}</span> </li> <li>Last name: <span id="lastName">${traveler.lastName}</span> </li> <li>Email address: <span id="email">${traveler.email}</span> </li> <li>Frequent Flyer Number: <span id="flyerNum">${traveler.flyerNum}</span> </li> </ul> ... 48
    • Advanced Example: Helper Class for Initial Page public class Traveler implements Serializable { p private String firstName = "Joe"; g ; private String lastName = "Traveler"; private String email = "joe@gmail.com"; private String flyerNum = "a1234"; public Traveler(String firstName, String lastName, String email, String flyerNum) { setFirstName(firstName); setLastName(lastName); setEmail(email); setFlyerNum(flyerNum); } public Traveler () {} // Standard getters and setters } 49 Advanced Example: Initial Page: Results 50
    • Advanced Example: Servlets for Updating • Purpose – These are the servlets specified earlier in the Ajax.InPlaceEditor constructors • update-firstName update-lastName update-email update firstName, update lastName, update email, update-flyerNum • Behavior – They look up the session, get a Traveler object from the session, then store first name, last name, etc. in that object – They also have a delay to simulate use on a loaded network • This lets you see "Saving..." message while waiting for server update 51 Advanced Example: Servlets for Updating (Parent) public abstract class UpdateTraveler extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setHeader("Cache-Control", "no-cache"); p ( , ) response.setHeader("Pragma", "no-cache"); HttpSession session = request.getSession(); Traveler traveler = (Traveler)session.getAttribute("traveler"); if (traveler == null) { traveler = new Traveler(); session.setAttribute("traveler", t i tAtt ib t ("t l " traveler); l ) } 52
    • Advanced Example: Servlets for Updating (Parent, Cont.) (Parent Cont ) String newVal = request.getParameter("value"); if ((newVal != null) && !(newVal.trim().equals( ))) { ! !(newVal trim() equals(""))) doUpdate(traveler, newVal); } p g () PrintWriter out = response.getWriter(); try { Thread.sleep(2000); } catch(InterruptedException ie) {} out.print(getResult(traveler)); } public abstract void doUpdate(Traveler traveler, String newVal); St i V l) public abstract String getResult(Traveler traveler); } 53 Advanced Example: Servlets for Updating (First Name) public class UpdateFirstName extends UpdateTraveler { public void doUpdate(Traveler traveler, String newVal) { traveler.setFirstName(newVal); } public String getResult(Traveler traveler) { return(traveler.getFirstName()); } } 54
    • Advanced Example: Results 55 © 2009 Marty Hall Wrap-up Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location.
    • Recommended Books • Prototype and script.aculo.us: You Never Knew J K JavaScript C ld Do Thi ! S i Could D This! – By Christophe Porteneuve • Prototype and Scriptaculous in Action – By Dave Crane, Bear Bebeault, Tom Locke 57 Summary window.onload = function() { new Autocompleter.Local( fieldID1 , Autocompleter Local("fieldID1" "divID1", arrayOfChoices); new Ajax.Autocompleter( fieldID2 , Ajax Autocompleter("fieldID2" "divID2", "urlThatReturnsList"); new Ajax.Autocompleter("fieldID3", Ajax Autocompleter("fieldID3" "divID3", "urlThatReturnsList" { indicator "ind id" indicator: "ind-id", paramName: "p-name", more-options...}); }; 58
    • Summary (Continued) window.onload = function() { new Ajax.InPlaceEditor("id-to-edit-1", "url-to-send-value"); new Ajax.InPlaceCollectionEditor ("id-to-edit-2", "url-to-send-value", { collection: ["Option1",...,"OptionN"]}); }; 59 © 2009 Marty Hall Questions? Customized Java EE Training: http://courses.coreservlets.com/ Servlets, JSP, JSF 1.x & JSF 2.0, Struts Classic & Struts 2, Ajax, GWT, Spring, Hibernate/JPA, Java 5 & 6. Developed and taught by well-known author and developer. At public venues or onsite at your location.