Archive for September, 2009

Java: Difference between Comparable and Comparator Interface

Posted on September 26, 2009. Filed under: Java | Tags: |

Java allows us to sort objects that implement the Collection Interface, using either the comparable interface or a comparator class. But do you know what the differences using each of the Interface ? java.lang.Comparable java.util.Comparator int objOne.compareTO(objTwo) – A Comparable interfaced class must contain a method called compareTo to compare two objects (one being the [...]

Read Full Post | Make a Comment ( 3 so far )

jQuery: Setting default submit button for ‘Enter Key’ using jQuery

Posted on September 15, 2009. Filed under: Javascript, jQuery, Web Development | Tags: , , |

To Start with… One of the most annoying things in developing web pages is handling the “Enter Key” for form submission. ‘Enter Key’ makes form submission so easy that users always tend to use it. The easiest and the most intuitive way is that, the user can enter some text or make some changes to [...]

Read Full Post | Make a Comment ( 1 so far )

jQuery: Flexibility of combining multiple statements

Posted on September 15, 2009. Filed under: CSS, Javascript, jQuery, Web Development | Tags: , |

The true essence of jQuery [write less do more] lies in its flexibility to combine multiple statements into one. Scenario – HTML <input type=”text” name=”addrLine1″ maxlength=”100″ size=”40″ value=”" id=”addrLine1″ > CCS input.disabled { /* Structure: */ /* Format: */ background-color:#e5e5e5;color:#999 } Now you wanted to do two things – disable the textbox change the style [...]

Read Full Post | Make a Comment ( None so far )

J2EE: Which JVM served my request?

Posted on September 4, 2009. Filed under: Code, J2EE, Programming, Web Development | Tags: , |

In general, enterprise web application are deployed in multiple JVMs to attain the power of distributed computing. At times, you might want to find out which JVM served your request for various reasons – - Debugging an error [example - checking system.outs or logger files] – Caching issues I use one of the following simple [...]

Read Full Post | Make a Comment ( None so far )

Database Concepts for Java Programmer: Part 2 – Keys

Posted on September 3, 2009. Filed under: Database | Tags: |

In this part, I will be briefing about different kind of keys available in database systems. Base example I will be using the following table to explain about database keys – EMPLOYEE [ EMPLOYEE_ID, EMPLOYEE_SSN_ID, EMPLOYEE_DEPT_ID, EMPLOYEE_FIRST_NAME, EMPLOYEE_LAST_NAME, EMPLOYEE_ADDRESS ] Candidate Key A candidate key is a combination of attributes that can be uniquely used [...]

Read Full Post | Make a Comment ( 1 so far )

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.