dcsimg
*.do files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manish_Sharma
Posted On:   Thursday, December 27, 2001 03:53 AM

Hi,
What are *.do files in struts framework.
How they help us?

Re: *.do files

Posted By:   Ted_Husted  
Posted On:   Monday, December 31, 2001 04:10 AM

The Struts framework encourages a Model2 MVC architecture.
This means that the JavaServer Pages are not used
for processing data, but only to display it.
The processing takes place in an "action" class that exists
separately from the page. The action obtains whatever
data the page needs to display, and then forwards it
along in JavaBeans. The *.do URIs are used to select
which action is to be called in response to a request. The
action then selects the page.


This greatly simplifies the presentation page, and makes
writing complex applications much easier. The action can
concentrate on obtaining the information, and the page
can concentrate on displaying it.


This approach follows the MVC architectural pattern, which
has been proven useful by nearly 30 years of practical
experience in application design, from Smalltalk to Swing.


HTH -Ted

About | Sitemap | Contact