Author: krishna

XSL or XSLT

1.Test if the value of a certain node is empty Depends what you mean by empty. Contains no child nodes: not(node()) Contains no text content: not(string(.)) Contains no text other than whitespace: not(normalize-space(.)) Contains nothing except comments: not(node()[not(self::comment())]) 2. To match any node with no data. example: <field1>data</field1> <field2> </field2> How do I match field2’s…

Read More

Java Server Pages

· JSP Directives: Page Directive: Define & manipulate a number of important page dependent attributes that affect the whole JSP, & communications these attributes to the JSP container. <%@ page [ language = “java” ] [ extends = “package.class” ] [ import = “package.*” ] [ session = “true | false” ] [ buffer =…

Read More

Enterprise Java Beans

EJB architecture: is a component architecture for the development and deployment of component-based distributed business applications. An application written using the Enterprise JavaBeans architecture is Scalable Transactional Multi-user secure General Restrictions of EJB: EJB development places some restrictions on the developers for better component management and easier service. The restrictions include the following An enterprise…

Read More

java.util

Collection vs List vs Map vs Set Collection List Map Set Duplicate Elements Duplicate Elements No Duplicate Keys No Duplicate Elements Extends Collection Each key can map to 1 value Extends Collection HashMap vs HashTable vs HashSet vs TreeSet vs TreeMap HashMap HashTable HashSet TreeSet TreeMap Implements Map Implements Map Implements Set Implements SortedSet Implements…

Read More

java.thread

Definition A thread is a single sequential flow of control within a program. Runnable is implemented by class Thread. Being active simply means that a thread has been started and has not yet been stopped. Runnable provides the means for a class to be active while not subclassing Thread. A class that implements Runnable can…

Read More

Google Maps Examples

Created few examples and can be browsed here 1. Geocoder for an Address 2. Point Locations 3. Skin layer on Google Map 4. Location Information 5. Point Address on Map.html 6. Clickable Sidebar 7. Distance between 2 points 8. Map with Polygon 9. Driving Directions 10. AJAX Search

Read More

Architectural benefits of Spring

Some of the benefits Spring can bring to a project: Spring can effectively organize the middle tier objects, whether or not choose to use EJB. Spring takes care of plumbing that would be left up to you if you use only Struts or other frameworks geared to particular J2EE APIs. And while it is perhaps…

Read More