File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts application flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts application flow" Watch "Struts application flow" New topic
Author

Struts application flow

amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50
Hi,

I have just started working on a web application based on Struts framework. I would be very thankful if someone will explain the stuts application flow in detail. I have some idea like, first web.xml is parsed by web server and web server identifies the ActionServlet (main controller) action mapping pattern, config files etc. It also recognises the welcome file and loads it. But i am not sure about how and when the RequestProcessor comes into picture. There are many other classes that are refered when I trace the debugging of a single process like(add new user).

Please also explain how the xml files are read i.e. line-by-line execution or some other way and if xml files are understood only by web servers or web browsers can also understand a xml page.

Thanks in advance

Amitesh
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
This link should give you a lot of good information about the Struts logic flow. Pay particular attencion to section 3, the sequence diagram.
[ September 08, 2006: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
amitesh kumar
Ranch Hand

Joined: Aug 01, 2006
Posts: 50
thanks merril

i just saw this page and it looks really good to clear my doubts. I'll go through it and ask you furthur if i have any doubts.
saikrishna cinux
Ranch Hand

Joined: Apr 16, 2005
Posts: 689
Originally posted by amitesh kumar:
thanks merril

i just saw this page and it looks really good to clear my doubts. I'll go through it and ask you furthur if i have any doubts.


If you really have doubt further just go to this link
http://www-128.ibm.com/developerworks/ibm/library/j-struts/


A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts application flow