background preloader

Spring / Struts

Facebook Twitter

Struts 2 - Welcome. About Apache Struts 2 Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the full development cycle, from building, to deploying, to maintaining applications over time. Apache Struts 2 was originally known as WebWork 2. After working independently for several years, the WebWork and Struts communities joined forces to create Struts2. This new version of Struts is simpler to use and closer to how Struts was always meant to be. Build! Build! Platform Requirements Apache Struts 2 requires: Servlet API 2.4JSP API 2.0Java 5 An alternate set of JARs for Java 4 are also available.

For a full list of requirements, including dependencies used by optional plugins, see Project Dependencies Licensing of Apache Struts Distributions Apache Struts 2 source code and documentation is licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. Struts 2 + Spring 2 + JPA + AJAX. On this tutorial we will demonstrate how to setup Struts 2 in Eclipse, and make it work with Spring, Java Persistence API (using Hibernate) and Struts 2 Ajax tags. Icon Hibernate is licensed under the LGPL, and any application created using Hibernate is subject to the terms of the LGPL. Following this tutorial verbatim will require use of a Struts 2 deployment greater than 2.0.3 Tomcat Install Tomcat before going forward.

See Tomcat's installation guide if you have any problem installing it. MySql Install and configure MySql. Show me the code You can just download the zipped Eclipse project, add the required dependencies to the lib folder under the /WebContent/WEB-INF/lib folder (relative to project's root folder) and import it into Eclipse. The maven way To run the project this way you will need maven installed.

Download the zipped projectDownload jta jar from here. Create Eclipse project Open Eclipse. Dependencies Your project should contain the folders "src", "build" and "WebContent". Domain. Java Struts Spring Hibernate Tutorial. Getting Started With Spring Integration. Why Spring Integration Spring Integration is an API from the creators of the Spring Framework that's geared towards Enterprise Application Integration (EAI). When it comes to integration, there is no shortage of “solutions”: hard coded Java clients, other ESBs, and more traditional application integration technologies like message queues.

Spring Integration offers improvements on every case, sometimes in dramatic ways! Spring Integration is very lightweight, and easily tested. It has almost no barrier to entry, and is conceptually going to be simpler than any “I'll just write it myself” solution. In the long run, it's much more flexible and resilient. Spring Integration is powerful in its own right, but it can't be denied that it benefits from the strength of the Spring framework. Background Enterprise Application Integration (EAI) is an application of technology defined as the integration of data and services between applications. The complexity rises precipitously after that. Resources. Apache Struts - Welcome. Downloads - struts2-examples - Project Hosting on Google Code.