Archive | CodeGuru RSS feed for this section
“Error Establishing A Database Connection” Error In Xampp MySql

“Error Establishing A Database Connection” Error In Xampp MySql

I have setup xampp local server  with MySql on my Windows 7 machine. Basically this was to setup a wordpress blog on localhost to test features before rolling out here on this live blog. My machine has McAfee Antivirus protection which also handles firewall. Everything was working fine until one day [...]

Read more
Top 10 Java Developer Forums

Top 10 Java Developer Forums

Developers get into tricky situations while programming. Some syntax problem or any specific feature about Java, there are lots of confusions and doubts which we encounter. Best way is to ask community alike. This time, we have collected best Java communities and forums where you can post your doubts and errors, find resources, ask questions [...]

Read more

Ideal Way Of Exception Handling In Multi Layer Java Web Application

Exception handling in web application is indeed a tricky task and it varies according to scenarios. There are no fix rules but yes I will give you a generic idea about better way of exception handling. Generally well structured application has four layers: Presentation Layer (JSP/HTML), Business Logic Layer (POJO containing business logic) and Database [...]

Read more
Spring MVC Application Flow With Diagram

Spring MVC Application Flow With Diagram

I will explain ‘Flow of typical Spring MVC application’ or in other words ‘How exactly user gets served?’. We will see how data and control flows through all the stages of this process. Let me start with one diagram,

Read more
IOC (Inversion of control) Basics With Example

IOC (Inversion of control) Basics With Example

IOC, one of the most buzzing words in IT. I will describe its clear cut meaning with example in this article.
Formal Definition: IOC is an aspect of some software architecture designs in which the flow of control of a system is inverted in comparison to traditional programming.
Before discussing further, let me give you one [...]

Read more

Spring UrlFilenameViewController Example

Hope you guys have enjoyed previous article, MultiActionController Example. Now, let’s move on to UrlFilenameViewController. It transforms the virtual path of a URL into a view name and returns the view, that’s it. It is useful when you don’t need any logical operation on request and simply wants to redirect to some resource. For example, [...]

Read more

Spring MultiActionController Example

MultiActionController is one of the types of Controllers in Spring. It extends AbstractController. (Somewhat similar to DispatchAction in Struts)  Why MultiActionController?: It aggregates multiple request handling methods into single controller, so related functionality can be kept together easily.
NOTE:To reduce complexity, I have added business logic in Controller. Later on I will republish this example as [...]

Read more