Posts Tagged ‘JSP’

How to iterate HashMap using JSTL forEach loop

JavaServer Tag library is one of the most used JSP tag library out there. I have used it almost in all of my JEE based projects. The best feature probably is the Iterator API in JSTL tag library.Here is a small code snippet which you might not know. Its very easy to iterate Lists using JSTL. For example://Java List<String> cityList = new ArrayList<String>(); cityList.add("Washington DC"); cityList.add("Delhi"); cityList.add("Berlin"); cityList.add("Paris"); cityList.add("Rome");request.setAttribute("cityList", cityList);//JSP <c:forEach ...
Tags: , ,

Solving “According to TLD or attribute directive in tag file” issue

Yesterday while working on one of the old web application that was created in J2EE / JSP which is using JSTL for painting pages, I encountered a wired issue. As I was using JSTL in my JSPs, I had include required jars like standard.jar and jstl.jar with proper version in classpath of my project. Still I was getting this error whenever I tried running JSP:According ...
Tags: , ,

Tutorial: Create Autocomplete feature with Java – JSP / jQuery

Tutorial: Create Autocomplete feature with Java - JSP / jQuery
Autocomplete is a common feature available in lot of web tools and services. You will find lots of implementation of autocomplete features. Let us see how can we implement a simple Autocomplete feature for Country names in Java-JSP and jQuery.We will use jQuery's autocomplete plugin for our example. I have used Eclipse for the development of this demo.Create a dymanic web project ...

Tutorial: Create JSP custom tag library

Tutorial: Create JSP custom tag library
A Custom tag is a user defined JSP language element. When a JSP page containing custom tag is translated into a Servlet, the tag is converted to operations on an object called tag handler. The Web container then invokes those operations when the JSP page's servlet is executed. It speeds up web application development because of code reuse feasibility. Custom tags can access all the ...
Copyright © 2012 ViralPatel.net. All rights reserved.