Struts is only used for V and C. It does not handle the M.
The Struts ActionServlet is the main part of the Controller. URLS are mapped to this servlet in the web.xml file. See below for example.
if i have my welcome page as welcome.html, whether requesting for this ..my request will go to Controller ..
Only URLS that match the pattern specified in the web.xml file will be handled by the Controller. For the example above, intro.xyz will be handled by Controller. intro.html will not be handled by Controller.
Joined: Jun 20, 2008
Thanks for your reply...
I want to know how other files will be handled other then action type..
Joined: Apr 16, 2008
Other files than those mapped to the Controller are handled by the web server directly.
A Java servlet is an extension of a Java-based web server.