Section 8.3. Ajax with Struts: What Have We Learned Here?


8.3. Ajax with Struts: What Have We Learned Here?

Adding Ajax to Struts applications can enhance the usability of your applications. You can either write your own JavaScript to support the Ajax calls or use a library like DWR or Struts-Layout. If you are using your own JavaScript, map your Ajax calls to Struts actions instead of servlets.

Another good way to add Ajax to your Struts applications is by taking advantage of existing JSP tag libraries that support Ajax, or writing your own. Any of the JSP tag libraries discussed in Chapter 7 will work in the Struts environment. Pick the ones that have the functionality you need for your application, and leverage the work of others.




Ajax on Java
Ajax on Java
ISBN: 0596101872
EAN: 2147483647
Year: 2007
Pages: 78

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net