Five minutes guide for creating your first Struts2 project using Maven2

By Prasanna | May 31, 2009

Struts2 is one of the most popular Java web application frameworks for building modern web 2.0 applications. In spite of facing stiff competitions from other sophisticated web frameworks like Ruby on Rails, Struts2 has been successful in retaining the top position mostly because of the Java factor associated with it.

Switch on Strings in Java

By Prasanna | Jan 24, 2008

JDK 5.0 and its implementation of enum has eased the process of switching on strings in Java. Following code snippet shows how this functionality can be achieved..
public class prasTest {
public enum test {
first, second, third, novalue;
public static test toValidStr(String str) {
try {
return valueOf(str);
}
catch (Exception e) {
return novalue;
} }
}
public static void main(String args[]) {
String str = [...]

Finding the hard disk space information using Java SE 6

By Prasanna | Jan 22, 2008

Until Java SE 6 (Mustang) there was no direct Java way to get the hard disk volume information’s like the total disk space & available free space. The only possible way was the use of JNI which could have made our code platform dependent. The JSE 6 makes this task simple by providing few additional [...]

JBOSS Cache for J2EE developers

By Prasanna | Jun 22, 2007

What is JBOSS Cache ?
JBoss Cache is a replicated and transactional cache that can be used to manage Java objects within a local process or across distributed processes.
Need For JBoss Cache
With today’s large-scale enterprise applications, where scalability and high performance are required in-memory caching has a lead role to play. An in-memory cache can store [...]

© 2010 TechSagar, PassionDuo Wordpress Theme