Programming Tutorials

Struts Tutorials

31. MVC Architecture (Model 2 Architecture)

By: Baski : 2007-09-13

Description: The Model 2 architecture for designing JSP pages is in reality, Model View Controller (MVC) applied to web applications. Hence the two terms can be used interchangeably in the web world. MVC originated in SmallTalk and has since made its way into Java community. Model 2 architecure and its derivatives are the cornerstones for all serious and industrial strength web applications designed


32. Model 1 Architecture

By: Abinaya : 2007-09-13

Description: Model 1 architecture is the easiest way of developing JSP based web applications. It cannot get any easier. In Model 1, the browser directly accesses JSP pages. In other words, user requests are handled directly by the JSP


33. MVC with configurable controller

By: Charles : 2007-09-13

Description: When application gets large you cannot stick to bare bone MVC. You have to extend it somehow to deal with these complexities. One mechanism of extending MVC that has found widespread adoption is based on a configurable controller Servlet. The MVC with configurable controller servlet is shown in Figure below.


34. Introduction to Struts Architecture

By: Daniel Malcolm : 2007-09-13

Description: This tutorial looks closely at the Struts terminology for controller servlet and Handler objects that we mentioned and understand Figure below. Since this is your first look at Struts, we will not get into every detail of the HTTP request handling lifecycle in Struts framework. For now, let us concentrate on the basics.


35. Installing and configuring Tomcat and Struts

By: Emiley J : 2007-09-13

Description: This tutorial uses Windows environment to develop Struts application and Tomcat servlet container to deploy and test Struts applications.


36. Struts 1 vs Struts 2

By: jcarreira, adrian deccico : 2007-04-04

Description: Any application you use will always have versions and with each version increase the features and advantages of the newer version should by right increase too. Struts is not an exception. When struts was initially released the struts 1 was quite popular for quite some time. The current release Struts 2 has many differences from the struts 1. This article describes the differences between struts 1 and struts and offers a comparison chart between them.


37. Creating the first application using Struts 2

By: Gokul Verma : 2007-04-04

Description: Suppose you want to create a simple Hello World example that displays a welcome message use the blank web application in the distribution's apps directory is meant as a template. We can make a copy of the blank.war, deploy it to our container, and use the exploded copy as the basis for our application. There is even a simple batch file in the source code directory that we can use to recompile the application in place.


38. Editing struts-config.xml in a Struts Application

By: Gokul Verma : 2007-04-04

Description: The mapping of the request (remember: .do) to a specific Action and ActionForm class is done in the struts-config.xml file. This is the edited file from "struts-blank" to suit a one-page application:


39. Editing web.xml in a Struts Application

By: Gokul Verma : 2007-04-04

Description: The web.xml file is where servlets and other stuff are defined to the servlet container. We'll remove some unnecessary things from the web.xml file so it looks like this:


40. The directories and files of a Struts application

By: Gokul Verma : 2007-04-04

Description: You'll need to know the directory structure of a Struts application, and what's put in the directories. The "struts-blank" application is well-suited for this presentation, since it contains a minimum number of files: