Tuesday, April 26, 2011

Client Server GUI Chating Application in Java

This is an fine example for Scoket Programmin in java. This application contains 2 java classes. One is for server and other is for client. Java Scoket is used to connect them together. Each line of the code are explained through comments. To run this application first run the server one and then client. Two Gui will be shown as in below screenshorts. AppServer.java import java.awt.*; import...

Sunday, April 24, 2011

Easy Ajax Development with jQuery

What’s Ajax?AJAX is a short hand for Asynchronous JavaScript and XML. Ajax is a technique for handling external data through JavaScript asynchronously, without reloading the entire page. It means that instead of waiting for the whole page to load, you can load only what you need to. So if you only need to update one small text part of your site, you don’t have to worry about...

Friday, April 15, 2011

Struts 2 Architecture at a Glance with API Internal Flows

IntroductionApache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications.It is a second-generation web application framework that implements the Model-View-Controller (MVC) design pattern and it introduces several new architectural features that make the framework cleaner and more flexible. These new features includes-Interceptors for...

Toad Connection Error on a Windows 64-bit Machine

Problem Toad 8.6 installation on a 64-bit windows 7 machine gives error as below when trying to connect Database. "ORA-12154: TNS:could not resolve the connect identifier specified" Root Cause 64-bit Microsoft OS's install 32-bit applications into the following location"C:\Program Files (x86)\..."rather than the typical location of "C:\Program Files\..."This causes an existing...

Tuesday, April 12, 2011

Disable Back Button and Right Click using JavaScript

Now a day due to security purpose sometimes it is required that we disable the functionality of Back button of the Browser. Actually we can not disable Browser Back button but we can use JavaScript and find a workaround for this. We will cover below 3 tricks in this Article one by one -Open a Window without Back Button. Disable Back functionality using history.forward(). Disable...