September 3rd, 2009 at 10:14am |
To combine Ruby and Java might seem like a challenge, but it’s actually quite easy using the Spring Framework. Feel free to follow along with my simple step by step instructions. I make programming FUN! These examples are collected from Spring In Action - Second Edition and uses Spring Framework 2.0.8.
1: Define a regular java [...]
Read the rest of Combining Ruby (or Groovy/BeanShell) and Java with Spring Framework.
June 2nd, 2009 at 1:51pm |
I found this great step-by-step tutorial on Spring MVC today. It helps you build a very simple web application using Spring MVC. It takes care of all the steps required in order to have a simple web application where all the fundamentals are in place. Perfect for everyone interested in using Spring MVC.
The tutorial is [...]
Read the rest of Amazing Spring MVC Tutorial - simple.
May 31st, 2009 at 8:44pm |
Truben linked to a great page for Spring. Check it out!
http://truben.no/journal/spring-tutorialjava-spring-tutorialsspring-25-beginners-tutorial/
Read the rest of Spring Tutorial,Java Spring Tutorials,Spring 2.5 Beginners Tutorial
March 13th, 2009 at 6:42pm |
Recently, I’ve been involved with some projects that have been put out on google code. To be more precise, there’s two of them. Since it’s on google code, everyone can check out the source code and play with it. If you want in on one of the projects, please take contact with me in some [...]
Read the rest of Some new programming projects.
February 25th, 2009 at 3:03pm |
Came across a great page explaining the different Exceptions which can occour in Java.
Example:
IllegalAccessException
You are a burgler that are running a Java program during a burglery. Please finish stealing the computer, leave the premises and try again.
The rest are found her: http://rymden.nu/exceptions.html
Read the rest of Explanations of Exceptions in Java
November 27th, 2008 at 3:18pm |
Today I made a simple stack for you. It’s pretty much as basic as it gets. You push elements, you pop elements, you peek at elements, you get the size of the elements.
Here’s the code:
Node.java:
1
2
3
4
5
6
7
8
9
10
public class Node<E> {
private E content;
private Node<E> below;
public Node(E content) { this.content = content; }
public E getContent() { return content; }
public [...]
Read the rest of Java Abstract Data Type Series: SimpleStack
November 26th, 2008 at 11:47pm |
By request, and for fun, I made the game “Joker” (I think that’s what it’s called?), best known for it’s parody “Ekstra Joker Nord” (Extra Joker North) from Team Antonsen:
It’s a simple game where you get five numbers from 1 to 9, and decide if you want to go up or down based on that [...]
Read the rest of Lottery - Norwegian joker game in Groovy
November 26th, 2008 at 11:36pm |
For some crazy reason, I today decided to implement the most simple form for priority queue possible. And since I just got Syntax highlighting on my site, I decided to put it out here.
PS: If you are looking for a PriorityQueue, please use this one, it’s a better solution, based on a heap implementation.
This SimplePriorityQueue [...]
Read the rest of A SimplePriorityQueue in Java.
November 18th, 2008 at 6:14pm |
Today we had trouble with changing the default error messages in JSF, they were pretty confusing. After surfing the net, we found an easy solution:
Make a file called messages.properties and put it somewhere in your source folder (for example in a resource folder).
Go to the faces-context.xml, and add the following inside the faces-context tag:
<application>
<message-bundle>resource.messages</message-bundle>
</application>
Open the [...]
Read the rest of JSF: Make your own error messages.
November 5th, 2008 at 7:32pm |
Java EE:
If your application server crashes, and nothing works: Delete stupid .jar files from domain/lib/ext.
Read the rest of Todays note: