Centaur Tech

Dips

Thursday, May 12

Struts

Strut - a structural piece designed to resist pressure in the direction of its length

Quick reference :
http://javaboutique.internet.com/tutorials/Struts/
http://struts.apache.org/index.html

What is Struts?

Struts, from the Jakarta Project, is a development framework for Java servlet applications based upon the Model-View-Controller (MVC) design paradigm.

Struts is comprised of a controller servlet, beans and other Java classes,
configuration files, and tag libraries. This means that when you have downloaded
Struts you have available:
>>a controller for your application

(the Struts servlet acts as a common controller for the whole application)
>>a collection of Java beans and other helper
classes that you use in the "Model" part of your application
>>a collection of tag libraries used in your jsp-pages

To glue these things together Struts uses a set of configuration files.
Together this gives you the skeleton that you can use to "strut" your application.

Keywords :
ActionServlet
struts-config.xml - ActionsMappings
ActionForm bean class - Form data get/set , validate
Action class - perform() application logic
Struts tag libs - html, bean, logic

Struts 1.1 :
Nested Tag Library
Validator framework
PlugIn API
Declarative Exception Handling - specify and exception element of in struts-config.xml

Dips at 8:11 AM

0 comments

0 Comments

Post a Comment