JSTL Function in JSP 2.0

java-ee-thumbnail

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. also read: Java EE Tutorials Servlets Interview Questions New Features […]

Dynamic Attributes in Tag File in JSP 2.0

java-ee-thumbnail

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 […]

Variable Directive in JSP 2.0 Custom Tags

java-ee-thumbnail

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. […]

Custom Tags in JSP 2.0

java-ee-thumbnail

Tag Files in JSP 2.0 This tips explains about what are the advantages in the Custom Tags in JSP 2.0. It also compares it with the previous JSP versions. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 Asynchronous Servlets in Servlets 3 Lets look into the tips for more detail. […]

Custom Tag Libraries and Tag Files in JSP 2.0

java-ee-thumbnail

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. […]

Error Pages in JSP 2.0

java-ee-thumbnail

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. also read: Java EE Tutorials Servlets Interview […]

Ternary Operator in JSP 2.0 Expression Language(EL)

java-ee-thumbnail

A very common need in a JSP page is to include a piece of template text only if a certain condition is true. With JSP 1.2 and JSTL 1.1, this is typically done using a block, but that’s a very verbose solution. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 […]

New Features in JSP 2.0

java-ee-thumbnail

New Features in JSP 2.0 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 and designers easier. also read: Java EE Tutorials Servlets Interview Questions New Features in Servlets 3.0 Asynchronous Servlets in Servlets […]

Expression Language in JSP 2.0

java-ee-thumbnail

1)Introduction Expression Language was first introduced in JSTL 1.0 (JSP Standard Tag Library ). Before the introduction of JSTL, scriptlets were used to manipulate application data.JSTL introduced the concept of an expression language (EL) which simplified the page development by providing standerd tag libraries. These tag libraries provide support for common, structural tasks, such as: […]