XML schema is a language for describing the contents and structure of a XML document. It basically creates a blue print of the actual XML document by describing everything about the elements which can appear in the document. By creating a XML schema we make the XML document conform to the rules defined in the …
Creating XSLT documents
Introduction XSLT is used for the transformation of XML documents into XHTML. We know that HTML uses predefined set of tags which can be interpreted by the browser. However this is not true for XML documents. XML does not use predefined set of tags. Hence, if we open an XML document in browser we cant …
XQuery Syntax
XQuery is a concept very similar to SQL. As sql is used to query database tables we can use XQuery to query XML data. Xquery can be used to query XML documents, data which is in XML syntax and databases. Using XQuery we can find XML elements. This can be very useful in situations when …
JSTL Function in JSP 2.0
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 …
ServletContextListener Example
This tips explains the how to use ServletContextListener. There will be only one ServletContext for each web application. ServletContext will be created while deploying the application. Once the ServletContext is created, it will be used by all the servlets and jsp files in the same application. ServletContext is also called as the application scope variables …
Dynamic Attributes in Tag File in JSP 2.0
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
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
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. …