Struts2 Spring Hello World in Eclipse

struts2 spring file structure

Following example shows the integration of Struts2 ans Spring using ant in Eclipse Using struts v-2.3.4.1 and spring v-3.2.0 File Structure —index.jsp—

—Welcome.jsp—

—applicationContext.xml—

—User.java—

—struts.xml—

—web.xml—

OUTPUT: Get the complete code with all the jars included. Enjoy

Continue Reading

Struts2 Validation using validation.xml Netbeans Example

Struts2 provides different validation methods. In this post basic validation method is described that uses the validation.xml file.   File Structure   —index.jsp—

  —Register.java—

  —struts.xml—

  —Register.validation.xml— (Place this file in the folder where your Register.java is)

  There are other pages also. Download the complete program. Validation_Struts2_Mvn_Netbeans.rar   […]

Continue Reading

xml Validation Struts2 Example

Struts2 provides different validation methods. In this post basic validation method is described that uses the validation.xml file. File Structure —index.jsp—

Struts 2 Validation Example   —Register.java—

—struts.xml—

—Register.validation.xml— (Place this file in the folder where your Register.java is)

  There are other pages also. Download the complete program. Validation_Struts2_Mvn_Eclipse.rar OUTPUT […]

Continue Reading

Struts2 Hello World in Eclipse

Struts2 Hello World Example in Eclipse Below Example use struts2.3.X version Project Structure —index.jsp—

  —HelloWorld.jsp—

  —web.xml—

  —struts.xml—

  —HelloWorldAction.java—

  —MessageStorage.java—

  —pom.xml—

  —OUTPUT—   Download Struts2 Hello Program   Source: http://struts.apache.org/release/2.3.x/docs/create-struts-2-web-application-using-maven-to-manage-artifacts-and-to-build-the-application.html

Continue Reading

How to Send Email in Java, Struts 2.x

Hello Friends, This is a struts 2.x based Java “Email Sending” Web application. I have developed this project using Netbeans IDE 7.2 and Glassfish 3.1 as the integrated Server.  We are very much in need of this sorts of program with the help of which can achieve various tasks so easily. Either it is validating […]

Continue Reading