aspose file tools*
The moose likes Struts and the fly likes application flow Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "application flow " Watch "application flow " New topic
Author

application flow

anita dhar
Ranch Hand

Joined: Jul 14, 2007
Posts: 69
hello ranchers

i am new to struts , can any one tell me flow of struts application
example
login page
when user submits values , the jsp/servlet container receives the request and look into the web.xml for the servlet and url pattern once it will get after that how the flow goes on

thanks in advance
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Incase of struts, it's not exactly similar to the servlet way of things.

Usually a servlet would be mapped to a url-pattern similar to "abc".
Incase of struts, the url-pattern is usually like "abc.do"
Here the ".do" tells the web.xml to pick up the ActionServlet. (You can take a look at the servlet mapping for *.do in your web.xml)
From there on, the text preceding the ".do" is looked up in the action mappings, which have been read from the struts-config.xml file during startup.
This would in turn point to the correct action class (which are actually derivatives of the servlet family in a way).

Btw, you can actually have your struts URL's identified by something other than ".do". You can use ".abc" too, just that it should be mapped to the action servlet within your web.xml

Hope this helps somewhat. (I think some comprehensive document would be much better though.).
anita dhar
Ranch Hand

Joined: Jul 14, 2007
Posts: 69
THANKS ,YOUR INFORMATION IS USEFUL AND YOU SUGGEST ME TO GO FOR SOME DOCUMENTAION CAN YOU SUGGEST ME ANY LINK WHICH WILL EXPLAIN ME PROPER FLOW WHERE TO GO
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61241
    
  66

anita dhar, please refrain from posting in all uppercase. it makes your posts very hard to read.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Try this document

This should help you get started on just the right track.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: application flow