In the first part of this article we learned about AJAX techniques and using AJAX with PHP and JSP. In this part we will try to use some advanced JSP tag libraries to develop feature-rich web applications using AJAX.
JSP Libraries and AJAX - jMaki widgets (Page 4 of 5 )
Here, you can see the JSP code at the left and the Palette at the right. There are a lot of jMaki widgets in the palette.
jMaki has lots of widgets for Dojo, Google, Yahoo and Flickr. Using Flickr widgets, you can create captcha, word art, and search for images very easily. Let's create an image search using jMaki's Flickr widget. Just drag the widget from the palette and drop it into your JSP page. Now save the project, build and run. A browser will be opened as below.
Enter some value in the edit box and click Search. It will get the images from Flickr using AJAX. I entered Toys as the tag and clicked search;, below is the output.
You can change the labels here from 'My Tab' to anything you need. You can also have as much tabs as you need. The above code will create two tabs with labels and contents as below.