ModelMap vs Sessions

I found a peculiar problem today. Normally when I make controller methods, I use a ModelMap object for carrying data from the method to the jsp. Using these in spring mvc allows me to access the data using the ${ } construct and jstl tags when needed. This…

Log4j Configuration

This is pretty simple stuff. Too easy if you ask me.  The log4j is a handy tool for handling logs for your application. Log4j can be configured to just display logs in console or to write logs in files. The above screenshot  shows how a typical console log…

Using Datasource in Spring

Finally I have managed to use a datasource in spring. My database is called AKDB, which was created in Oracle Database11gR2. To use this database as a datasource, heres what I have done in my app : First, I created a jdbc.properties file. In the file I put…

Spring: Yet another surprise!

My demo code started working again and this time I see a pattern. This code was deployed into my weblogic server at the context root of “/”. When I changed it to something else like “aklogin”, I started getting the 404 errors again and all that I have…

Spring MVC Annotations Wierdness

I have been learning about Spring MVC for a past few days and have been trying to implement a "hello world" page using Spring’s annotation based controllers.  I have followed a step-by-step tutorial I found in the net. The funny thing is that the tutorial or any other…