home

San Francisco

October 7, 2011

It’s my first trip to United States (or to any foreign country for that matter) and I was kinda excited to be here. Having spent the first three weekends in my hotel room and haven’t got a chance to take out my Nikon, I was eagerly waiting for an outing. So, we planned a trip [...]

Read the full article →

Intercepting onclick event in JavaScript using JQuery

October 6, 2011

Let’s say you are using some external components in your web page that renders a button as below: <input type=”button” value=”Delete” onclick=”delete();” /> The above code will call the delete() method when user clicks on the button. But, what if you want to show a confirmation box before calling the delete()? Since the code is [...]

Read the full article →

Making GET and POST requests in android application

September 29, 2011

It is often a requirement that you need to connect to a server through HTTP from your android application. When you use servlets/html, making such requests are a no-brainer. But, in Android it needs some searching before implementing such functions. Here’s some sample code snippets that explains how you can make GET and POST requests [...]

Read the full article →

Download and install JSTL

September 18, 2011

To add JSTL to your project; Download jstl.jar & standard.jar (360KB) Download the jstl.jar and standard.jar files from the above download link (or you can get these from your local Apache Tomcat installation too!) Put them in your project’s WEB-INF/lib folder. Add them to the CLASSPATH. Now you can use JSTL in your pages. So, why this [...]

Read the full article →

Copy paste code directly in Eclipse

September 10, 2011

Recently learned a really cool trick for copy-pasting code in Eclipse. Lets say you have the following code: package com.veerasundar.demo; public class CopyCode { private int nothing; } Now copy the above code, go to any Eclipse project and right click on source folder and paste. See what happens! Impressive isn’t it!? Here’s what Eclipse [...]

Read the full article →