|
|
|
|
|
|
Spring MVC - Setter Injection Example
Author :
AbhilashEtikala
Date : Sat Jan 22nd, 2011
Spring IOC container will inject the dependencies using the setter bean class.All the dependencies are declared as the instance variables of the bean class.Here we show a simple Book details example of Setter-Injection.
Spring MVC - Constructor Injection Example
Author :
AbhilashEtikala
Date : Sat Jan 22nd, 2011
Spring IOC will inject the dependencies using the constructor.All the dependencies are declared in the constructor. Here we show a simple student details example of Constructor-Injection. We have already published another article on the Spring Constructor Injection. This example provides more details.
Spring MVC - DispatcherServlet Example
Author :
AbhilashEtikala
Date : Sat Jan 22nd, 2011
DispatcherServlet : In Spring's web MVC framework the mechanism of dispatching the request to the appropriate controllers is achieved by configuring the DispatcherServlet class. DispatcherServlet is the class which manages the entire request handling process.Like a normal servlet DispatcherServlet also needs to be configured in the web deployement Descriptor(web.xml).By default DispatcherServlet will look for a name dispatcher-servlet.xml to load the Spring MVC configuration. Spring's DispatcherServlet is completly integrated with the Spring ApplicationContext and enables to use all the other features of the Spring.This example will explain about DispatcherServlet and its configuration.
Spring HTML TRANSFORM Tag (<spring:transform>)
Author :
AbhilashEtikala
Date : Mon Dec 6th, 2010
Spring MVC provides a JSP tag library (Spring Form) for making it easier to bind form elements to Model data. Spring Framework also provides you with some tags for evaluating errors, setting themes and outputting internationalized messages.
Spring HTML ESCAPE and ESCAPE BODY Tags (<spring:htmlEscape> and <spring:escapeBody>)
Author :
AbhilashEtikala
Date : Tue Nov 30th, 2010
Spring MVC provides a JSP tag library (Spring Form) for making it easier to bind form elements to Model data. Spring Framework also provides you with some tags for evaluating errors, setting themes and outputting internationalized messages.
Spring BIND and NESTEDPATH Tags (<spring:bind> and <spring:nestedPath>)
Author :
AbhilashEtikala
Date : Tue Nov 30th, 2010
spring:bind-This tag provides support for the evaluation of the certain bean or bean property.The status may includes the actual value of the certain bean or bean property as well as possible errors and the expression for the databinding functionality.
spring:nestedPath-This tag provide support and assist with nested beans or bean properties.It exports a "nestedPath" variable of type String. The BindTag will automatically detect the nested path and automatically prepend it to its own path to form a complete path to the bean or bean property. This tag will also prepend any existing nested path that is currently set. Thus, you can nest multiple nested path tags.
Spring MESSAGE and THEME Tags (<spring:message> and <spring:theme>)
Author :
AbhilashEtikala
Date : Tue Nov 30th, 2010
spring:message-This tag provides internationalization support using MessageSource interface which provides functionality to retrieve messages.If "code" isn't set or cannot be resolved, "text" will be used as default message.
spring:theme-This tag is used to retrieve a theme message in the scope of the current page.Messages are looked up using the ApplicationContext's ThemeSource.
Spring Framework FORM Tags
Author :
AbhilashEtikala
Date : Wed Nov 10th, 2010
Spring MVC provides a JSP tag library (Spring Form) for making it easier to bind form elements to Model data. Spring Framework also provides you with some tags for evaluating errors, setting themes and outputting internationalized messages.
Struts 2.0 and Spring
Author :
AbhiVuyyuru
Date : Thu Oct 2nd, 2008
In this post, I will describe how to do the same using Struts 2.0. The only major step that needs to be done here is to override the default Struts 2.0 OjbectFactory. Changing the ObjectFactory to Spring give control to Spring framework to instantiate action instances etc. Most of the code is from the previous post, but I will list only the additional changes here.
How to use Initialization callback methods while creating Spring bean?
Author :
JavaBeat
Date : Thu Jul 24th, 2008
Springframework provides flexibility to initialize its Beans using the user defined methods. There is some scenario
where application developer want to initialize the beans properties after setting all the values. The following example
program demonstrates by defining a custom method to initialize the calues.
|
|
|
|
|
|
|