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
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.).
Joined: Jul 14, 2007
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