Monday, May 4, 2009

Jquery in JSP

JAVA/JSP the best part is platform independency of it.JSP is provide the UI part in web and having matured feature on it.But after coming PHP with combination of jquery and jason it has become more power full in web development.
This blog is entitled to increase the flavour of JSP by using the Jquery so that it should not loose its popularity.
Still we know its bit difficult to implement the AJAX in JSp for developer and even after implementing we don't get pretty look of UI like built in PHP with JQuery.

To achieve the ajax functionality in JSP by using the JASON and JQUERY below is the steps which you have to follow

1)you need jason jar which must go inside the lib folder of WEB-INF.
click here to download jason.jar
2)download the jquery scripts.click here to download jquery.js
3)download the validation javascript file which you need to modify according to your requirment.click here to download val.js
4)download ajax.jsp which consists the jason object just like as hashmap of java.click here to download ajax.jsp
5)download index.jsp which consists all the forms and provide you the index.click here to download index.jsp
6) all related images click to download here loading.gif accept.gif exclamation.gif and put it inside the images folder.