JavaBeat Certifications Certifications Kits Articles Interview Questions OCAJP 7 OCPJP 5 OCPJP 6 OCEJWCD 6 SCBCD 5.0 SCEA SCJA
JSTL Function in JSP 2.0
Author : Deepak
Date : Tue Mar 3rd, 2009
In JSP 2.0 we can perform string operations in JSP without using any java code inside scriptlets. This is possible with the latest release of JSTL 1.1. The new library called Functions with prefix as fn allows us to perform string operations in JSP 2.0.

Dynamic Attributes in Tag File in JSP 2.0
Author : Deepak
Date : Thu Feb 26th, 2009
As we know that we can develop custom tag library as a simple tag file in JSP 2.0 and these tag files can accept attributes from the invoking JSP page. But one drawback of this approach is that we need to declare all the attributes in the tag file. JSP 2.0 provides a feature called dynamic attributes by using which we need not declare the attributes in the tag file using the attribute directive.

Variable Directive in JSP 2.0 Custom Tags
Author : Sutha
Date : Wed Feb 25th, 2009
This tips explains how to use the variable directive in the custom tags in JSP 2.0. There is time when JSP page needs to access the variable declared inside the Tag files. In the previous version we have to extend the tag library to declare the variables and need the special handling for those variables. In JSP 2.0, it is done very easily using the variable directive. Syntax for the variable directive is as follows:

Custom Tags in JSP 2.0
Author : Sutha
Date : Wed Feb 25th, 2009
Developing custom tags in the previous JSP versions are tedious and it is considered as one of the complex task for the JSP developers. Because inorderto write a simple custom tag you have to learn many things and should have good knowledge on Java also. Apart from that you have to use Tag APIs to create a complete tag library. Any small mistake will cause the error and tag files will not work. To make the things easy for the JSP developers, JSP 2.0 has the advanced features for creating JSP custom tag libraries.

Custom Tag Libraries and Tag Files in JSP 2.0
Author : Deepak
Date : Wed Feb 25th, 2009
With previous versions of JSP developing custom tag libraries was possible only by writing Java classes. As a result knowledge of Java was a must. JSP 2.0 introduces a new way of developing custom tag library using plain JSP. This enables JSP developers, who dont know Java, to develop custom tag libraries as Tag files. JSP 2.0 also provided added features of passing parameters to tag files. I will demonstrate this in the following examples.

Error Pages in JSP 2.0
Author : Deepak
Date : Tue Feb 24th, 2009
We can configure error pages in jsp and servlets to direct the control to a custom error page, showing a friendly error message to the user when an exception is thrown in the page. But tracking or logging the exception information is not very easy in JSP 1.2. JSP 2.0 fixes this problem by switching to the servlet specification: javax.servlet.error.exception. In addition, a new property of the implicit EL pageContext variable, named errorData, exposes other information about the problem. The errorData property is an instance of the javax.servlet.jsp.ErrorData class that can be used as a bean with the following properties:

Ternary Operator in JSP 2.0 Expression Language(EL)
Author : Deepak
Date : Mon Feb 23rd, 2009
JSP 2.0 adds a new conditional operator to the Expression Language(EL) to deal with this case in a more elegant way.The conditional operator exists in many programming languages (for instance, in Java, C, and JavaScript), so you may have seen it before. It takes a Boolean condition and one result to use if the condition is true and another if it's false. I use a very simple example to demonstrate the usage :

Pagination using Hibernate and JSP
Author : AbhiVuyyuru
Date : Fri Oct 3rd, 2008
In the past, I had a few posts on how to implement pagination using displaytag(1, 2). That solution is feasible only with small result sets, the reason being that we will have the entire result set in memory (also called cache based paging). If the result set is large, then having the entire result set in memory will not be feasible. With large result sets, you cannot afford to have them in memory. In such case, you have to fetch a chunk of data at a time (query based paging). The down side of using query based paging, is that there will be multiple calls to the database for multiple page requests.

New Features in JSP 2.0
Author : JavaBeat
Date : Fri Sep 19th, 2008
JSP 2.0 is released with new promises. JSP 2.0 is an upgrade to JSP 1.2 with several new and interesting features. These features makes the life of web application developers

JSTL and SQL-TAGS
Author : Ramaswamy
Date : Thu May 22nd, 2008
In this fourth and last part of the tutorial on JSTL,the author deals with the 'sql' tags in JSTL and shows how they greatly simplify simple database operations like 'select' queries. In another demo, common database operations like 'add','modify' , 'delete' and 'verify'also are dealt with.


javabeat | advertise | about us | contact | useful resources
Copyright (2004 - 2013), JavaBeat