submited by krishnas on Thu May 22nd, 2008
spring struts
In the past, I posted an example on how to use Displaytag with Struts and Spring, using Spring JDBC for data access(1, 2). 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....
more »
submited by krishnas on Thu May 22nd, 2008
struts java5
I am currently evaluating some web frameworks for a pet project and was trying to implement Struts 2 with tiles. Neither the Sturts 2 website, nor the tiles website gave an easy way to integrated Struts 2 and tiles. It took me a while to get them to work together. This post describes a way I figured out how to integrate Struts 2 with tiles. Struts 2 provides a plugin for integrating tiles 2. This plugin is included in the complete bundle (struts-2.x.x.x-all.zip). The following are are the steps needed to integrate struts2 with tiles....
more »
submited by krishnas on Thu May 22nd, 2008
struts java5
In a previous post, I described how to use validations in Struts 2, using XML validation rules. This post will show how to use Annotation based validation in Struts 2. For this example I used the add transaction part of google's portfolio manager (noticed that they do not have validations over there). Struts 2 provides a number of validators for XML based validation rules. All of them have respective annotations defined and can be used in place of XML validation rules. In the example, we will use the @RequiredStringValidator, @RegexFieldValidator and also see how to parameterize messages when using annotations....
more »
submited by krishnas on Thu May 22nd, 2008
struts
Struts 2 allows the use of Custom validators through the @CustomValidator annotation. The @CustomValidator annotation takes two mandatory parameters, type and message...
more »
submited by krishnas on Thu Mar 27th, 2008
spring jsf struts
Recently I got an opportunity to explore Spring Web FlowExternal Link framework. Later I came to know that Shale DialogExternal Link also solves the same problem. JBoss Seam too solves the same problem....
more »
submited by krishnas on Tue Oct 16th, 2007
struts
Looking for a new Web development framework? Walk through a sample application to see if Struts 2.0 is right for you....
more »
submited by krishnas on Tue Oct 16th, 2007
struts
Find out what's changed in Struts 2.0 and decide whether it's time to migrate to the new, improved Struts framework....
more »
submited by krishnas on Fri Aug 31st, 2007
struts ajax
Ajax developers know that tables can do a lot more than display static information in an organized, readable format. By syncing up your table rows with a server-side database, you can create dynamic tables that sort, filter and paginate data on the fly....
more »
submited by krishnas on Tue Aug 14th, 2007
struts java
n last Friday (August 10th), I gave a lecture about Apache Struts 2 at IBM Brazil....
more »
submited by krishnas on Sun Jul 29th, 2007
jsf struts
What if you didn't have to choose between a request-based framework and a component-based framework? What if you could use them together and use request-based for some pages and component-based for others? This is the functionality that the Struts 2 JSF Plugin provides....
more »