Tag Archives: coding

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 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