Saturday, March 17, 2012

MVC 1 vs MVC2

MVC1 Vs MVC2: Difference Between MVC 1 & MVC 2                                                                   MVC  1                             ...

Struts 1 vs Struts 2

FeatureStruts 1Struts 2 Action classesStruts 1 requires Action classes to extend an abstract base class. A common problem in Struts 1 is programming to abstract classes instead of interfaces.An Struts 2 Action may implement an Action interface, along with other interfaces to enable optional and custom services. Struts 2 provides a base ActionSupport class to implement commonly used interfaces. Albeit, the Action interface is not required. Any POJO object with a execute signature can be used as an Struts...

Friday, March 16, 2012

configure glassfish in myeclipse

http://glassfishplugins.java.net/eclipse34/index.h...

What is the need to Override Hashcode() and equals() method

Although there are lots of materials are available on internet and API document about the necessity of the overriding the hashcode() and equals() method in Java but lots of new developers still not able to understand the necessity of hashcode() method. In this article, I will try to explain step by step the need of overriding hashcode() method in Java. Few Thump rules: If two objects are same then they must return same value in hashcode() and equals()...

Add sharing buttons in web page

Code for Sharing buttons: <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_preferred_4"></a> <a class="addthis_button_compact"></a> <a class="addthis_counter addthis_bubble_style"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4f62aeac3f8df2c1"></script> <!--...

Thursday, March 1, 2012

Top 20 Java Websites

Here’s the best 20 Java websites in my collections, which provides latest Java news, articles and tutorials. If you have other great Java websites, please leave a comment to share with others.P.S The order doesn’t means any priority.1. O’Reilly JavaURL : http://www.onjava.com Since : 10-feb-2000 Rss : http://www.oreillynet.com/pub/feed/7?format=rss2 Description : O’Reilly’s, contains latest Java technology news, quality code snippets, full example and detail explanation.2. Sun...

What is the need to Override Hashcode() and equals() method

Although there are lots of materials are available on internet and API document about the necessity of the overriding the hashcode() and equals() method in Java but lots of new developers still not able to understand the necessity of hashcode() method. In this article, I will try to explain step by step the need of overriding hashcode() method in Java. Few Thump rules: If two objects are same then they must return same value in hashcode() and equals() method whenever invoked. It is not necessary that two different object must have different hashcode...