|
|
|||||
Java - How to use Ajax in JSPAjax is become so popular in web, everyone want to use Ajax in JSP application. Ajax got big popularity after Google used in their application gmail. Java also watching Ajax power and realized that Ajax is important part of any web application. It should be implemented in JSP, struts projects. Ajax allows us to load page in background without refreshing and submitting full page. Ajax is simple JavaScript script which work with XML Http request.
1. Ajax framework for java
Frameworks for Ajax in java are available from many third party websites. This Ajax framework can easily implement in any java application e.g. struts, JSP, Servlet. This Ajax framework comes in taglib and tags can use in front end page JSP. You can check and download these ajax framework http://ajaxtags.sourceforge.net/ http://ajaxanywhere.sourceforge.net/
Lot of script is available for auto complete, load page, validation, and menu navigation in Ajax which can use in JSP. A simple example of ajax show you to use in JSP index.jsp <html> </body> ajaxjs.js var xmlhttp function loadContent(str) xmlhttp=GetXmlHttpObject(); if (xmlhttp==null) var url="loadJSP.jsp"; xmlhttp.onreadystatechange=getOutput; function getOutput() function GetXmlHttpObject() JSP file which load in background loadJSP.jsp <%@ page contentType="text/html; charset=iso-8859-1" language="java" %> source: easywayserver |
|||||
| Copyrights Reserved AjaxProjects.com 2006-2013, Powered by Enozom - Mobile Development Company -Privacy Policy |