Home » Archive

Java

Written By: techieDan on June 7, 2011 No Comment

Comparing Strings in Java has evolved from the character comparisons to String comparisons to StringUtils comparison. Using the StringUtils to compare Strings is so much safer and faster to code.

Tags: [, ]
Written By: techieDan on March 15, 2011 One Comment

How can you try and catch and error and avoiding code redundancy in Java 7. With Java 7 still in beta mode, there are more upgrades to this amazing programming language.

Tags: [, ]
Written By: techieDan on March 7, 2011 One Comment
Java 7 – New Switch Statement

Fast forward to Java SE 7, you can now use Strings inside a switch statement. Unlike previous versions, putting Strings on a switch would produce an error but on Java 7, finally a switch comparator is enabled. Much more flexibility now.

Tags: [, , ]
Written By: techieDan on March 3, 2011 2 Comments
More AutoBoxing in Java

Some tips on Autoboxing to be applied in Java and for your SCJP 6 exams. The flexibility of the Java language has made programming easy and in some ways less complicated for the beginners.

Tags: [, , ]
Written By: techieDan on January 3, 2011 One Comment
JSTL When Test Error

Using JSTL is comfortable and easy, but sometimes simple mistake by using <c:when test> and it doesn’t work is because of human errors. Do refer what is the common mistake

Tags: [, ]
Written By: techieDan on June 1, 2010 2 Comments
Using DetachedCriteria get Result with another Table

How to use Hibernate’s DetachedCriteria to get result by using Join for a class. As of newest Hibernate, the type Expression is deprecated and that’s where Restrictions come into place. What’s the difference then by using HQL and Criterias?

Written By: techieDan on April 26, 2010 No Comment
Running Tomcat 5.5 on JDK 1.4 in Eclipse

For those running Tomcat 5.5 on a JDK 1.4, there will be compatibility issues. Testing it on Eclipse, the error would appear as such.

This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.

This [...]

Written By: techieDan on December 17, 2009 3 Comments
Hibernate Error : exception setting property value

Been playing around with Hibernate and mapping classes with Java. A reason why Hibernate is useful is so to facilitate users to stop writing pure SQL for queries and reduce code redundancy. A slight note, Hibernate also works well with the .NET platform.

Though there was this error which TechieDan experienced

org.springframework.orm.hibernate3.HibernateSystemException: [...]

Written By: techieDan on November 17, 2009 No Comment
Multiple Values Form:Select in Spring Java

Have been searching how to do multiple values in Spring.

What is Spring?

There are no complications when displaying only a single id or a value while using spring and form taglib by doing this.

<form:select path=”prospect.wholeSaleId” items=”${List}”
itemLabel=”wholeSaleId” itemValue=”wholeSaleId”>

Now itemLabel would display the wholeSaleId value. The problem now is how to display let’s say [...]

Written By: techieDan on October 27, 2009 5 Comments
Cool New Loop in Java 5

Most of us grew up with “Learn How To Program in C“. Then some of us shifted to JAVA due to the phrase, “Write Once, Run Everywhere“. Now back then, learning to write a loop in those days are considered good programming practice during the C Programming era. TechieDan even has his experiences on C [...]

Tags: [, ]
  Copyright © 2009 TechieDan, All rights reserved.| Powered by WordPress