Skip to content

Category Archives: Tutorials

Step by Step Tutorials – DWR with Spring, Ajax – Dynamic drop down lists

Scenario: A simple jsp page with a standard drop down box. A Selection criteria (could be another drop down box and a couple of check boxes) to change the values in these drop down box dynamically, without submitting the page. What you will learn: Configure dwr.xml with spring beans Configure application contexts for dwr beans [...]

Example code, sending emails using Spring SimpleMailMessage, MimeMessagePreparator and Velocity Templates

When I first wrote my custom Email utlity 4 years back using JavaMail, it spread well over hundred lines of code. Looking at Spring’s out of the box functionality for sending Emails with attachements & velocity templates makes you wanna feel sorry for your old code. The reference doc by Spring for Email is quite [...]

Marshalling and Unmarshalling Xml – Step by Step tutorial with Castor in 10 mins

If you want a simple way to marshall / unmarshall your pojo -> Xml files, Castor could be very handy. Before reading the docs on the setup and overview and breaking your nerves on it’s rich feature set, lets get going in less than 10 minutes. Castor is extremely powerful but if your purpose is [...]