All entries by this author

Know more about Servlet Mapping

Sep 11th, 2009 | By admin | Category: Servlets

A web server takes a request from the client and send the response back to the client. A servlet is a web application component that can talk to web server through the container it’s deployed into. We know , we need to do servlet mapping into web.xml to define the url pattern to access the [...]



Version Control in Java Serialization – serialVersionUID

Aug 6th, 2009 | By admin | Category: Java

In my last post on java object serialization , I have explained how to write an object to an object stream and how to read the object state under a different java virtual machine. Lets assume, we have created a class and instantiated it and serialized(Written the state to the file system) it too. Now [...]



Simple way to Write to XML using Java

Jul 30th, 2009 | By admin | Category: Java

Often it becomes necessary for application programmer to read from or write to XML pragmatically. There are many different ways to deal with XML using Java programming language. I am going to share one of them. Let me start this post with an use case. While reading through the use case , we should learn how to use Java to write to XML file. Lets Start . . .



Refresh GUI on XML update without restarting Tomcat(Server)

Jul 20th, 2009 | By admin | Category: Servlets

I am writing this post on the basis of my learning on refreshing UI(User interface) without restarting server(Tomcat , in my case) on update of an XML which resides inside the container. Often we follow the design where we write our application configuration into an XML file and read – write the XML based on the requirements.



Java Object Serialization – Developer’s Guide

Jul 16th, 2009 | By admin | Category: Java

Class is the heart of Java programming and object is a representative of the class. In day to day java programming , we create object and use that in different way.But the life span of an object is till the JVM(Java Virtual Machine) is up. Once JVM is down , there is no existence of the object you have created.But Java has a mechanism which allows you to store(save) your object ( let me say, object state) and you can use the stored object under a different JVM , in a different application or after restarting your own JVM. Isn’t it cool ? Read this post to start with Java Serialization API.



Refresh Parent page using JavaScript

Jun 25th, 2009 | By admin | Category: Java Script

Window.open() method opens a new window . If we try to refresh the parent on change of something in the opened window , what are the ways to do it ? One possible way is to call reload(true) on the opener. It reloads the whole document for you.



Eclipse shortcuts – Make Java development easy

Jun 11th, 2009 | By admin | Category: Eclipse

Eclipse is an widely used editor and a must used IDE for most of the Java Developers. Use of eclipse can be more fun and cool , if you know to use the eclipse shortcuts properly and effectively. What is the use of an IDE if it does the work of a notepad only(Intention is not there to blame notepad at all)? Eclipse provides a set of features in terms of key-shortcuts which make a life easy and save lots of time. Lets discuss some of the frequently used shortcuts of Eclipse.



Json – JavaScript Standard Object Notation

Jun 7th, 2009 | By admin | Category: Java Script

When we send a request to the server , we expect a response. When we make an Ajax call to server with the help of XMLHttpRequest ,we have an option to get the response in many different formats. It can be a plain text , CSV(comma separated) , Xml etc. If the return data is in complex form or in a form of an object you need something called JSON. This post would give you a start up confidence to use JSON.



Setting up SVN under Windows OS

May 29th, 2009 | By admin | Category: SVN

Setting up SVN is never a big deal. This post talks about a step-by-step procedure to set up SVN server under windows OS. Few open source software need to be downloaded and you can get going with the set up.



Java Reflection Mechanism

May 27th, 2009 | By admin | Category: Java

Can you ever think of writing a Java program without a class ? I know the answer is ‘NO’. As a class is the heart of the java program , it is always good to know about the in and out of the class. Java provides a very ordinary(but strong enough) API to know more about java classes , methods and fields. This API is known as Java Reflection API. Don’t you wonder how Eclipse IDE gives you the Auto complete feature ? How web application deployment descriptor (web.xml for tomcat) works ? The basic answer is REFLECTION. Have a look.