How to inject Spring beans into Servlets
This can be achieved in 3 simple steps: 1. Implement HttpRequestHandler First of all your servlet class must implement the org.springframework.web.HttpRequestHandlerinterface and provide an...
View ArticleHow to display images from the database in your jsp pages – the easy way
The easiest and elegant way to read images from the database and display them in the UI is through a servlet that handles the image processing for you. I’ll present below a sample that displays a user...
View ArticleGuice – a lightweight DI framework alternative to Spring
What is Guice? To quote from the Guice official page “Guice alleviates the need for factories and the use of new in your Java code. Think of Guice’s @Inject as the new new. Guice embraces Java’s type...
View ArticleHaving JAXB1 and JAXB2 in the same classpath
If you just add JAXB1 and JAXB2 jars into the same classpath you may end up with the following exception: You are trying to run JAXB 2.0 runtime but you have old JAXB 1.0 runtime earlier in the...
View ArticleUsing Google Guice in Web Applications
Introduction As promised in the previous article I’ll continue presenting Google Guice also for web applications. In order to do this you’ll need to get the servlet extension – part of the standard...
View ArticleMy first open source project: Selenium on Steroids
The projects targets QA automation engineers that want a clean and simple way to create Selenium tests allowing them to focus more on designing the tests rather than dealing with technical...
View Article
More Pages to Explore .....