Home » Archive

Articles tagged with: java

Written By: techieDan on December 17, 2009 One Comment
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 22, 2009 One Comment
Firefox 3.6 Update Your Java

Good news to Firefox browser users. Firefox 3.6 will be out some time in November 2009. Using Firefox really helps one to debug and with all the additional plugins and add-ons one can get, Firefox 3.6 is going to be a blast. Developers would love it, Web surfers would love it (if it uses even [...]

Tags: [, ]
Written By: techieDan on October 20, 2009 No Comment
Autoboxing in Java 5

Surprisingly after Sun Microsystems included the JDK 5 and now it’s already JDK 6. JDK 7 is currently in closed beta mode and available for testing which shortly would be announced to be available sometime next year with a different syntax in certain codes.

Did some code sampling and simple display to show what has changed [...]

Written By: techieDan on October 19, 2009 No Comment
Set Up JDK in Eclipse

Java enthusiasts and coders and programmers alike, how many of you are using Eclipse as your IDE to do your codes. For those in the Java field but still trying to find a good IDE, I would recommend Eclipse. Just so happens that Eclipse codename their newest version with Galileo. Instead of versifying their release, [...]

Tags: [, , ]
Written By: techieDan on March 17, 2009 No Comment

a programmer uses PreparedStatement instead of Statement when doing SQL queries in my projects. I found out that I can indelibly hacked into the system when I use SQL injection

Tags: [, ]
Written By: techieDan on October 30, 2008 No Comment

Setting up your Java environment to work on is as easy as how it seems to be. With Sun now offering executable JDK program, nothing much needs to be done.

As of date, current JDK is the JDK 6.0 kit which was said to be powerful that the previous versions beforehand. [...]

Tags: [, ]
Written By: techieDan on March 15, 2008 No Comment

Coding have never been the same!!! Some bad habits when writing codes which are redundant

String[] special = {“a1″,”a2″,”a3″,”a4″};

Connection con = null;

PreparedStatement stmt = null;

PreparedStatement stmt2 = null;

ResultSet rs = null;

ResultSet rs2 = null;

Class.forName (“com.mysql.jdbc.Driver”)

conn = DriverManager.getConnection (url, userName, password);

String [...]

Tags: [, , ]
Written By: techieDan on January 17, 2008 No Comment
MySQL ownership Taken Over

Hmm.. shocking news. It seems that the free open source MySQL database has now been bought over by SUN. Yes, Sun, the creator of Java which is famous for it’s compile once run everywhere (basically platform independent).

In terms of news, with an astonishing figure of $1,000,000,000 or in literal translation 1 Billion dollars. That’s an [...]

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