I know all flow of struts, But What actually happens internally in struts framework? How the actions are internally mapped?
Printable View
I know all flow of struts, But What actually happens internally in struts framework? How the actions are internally mapped?
Struts framework is based on MVC architecture. When we put some values in the jsp file (whatever the view component is) & submit that page it contains the action path which is mapped to a action servlet class . This mapping is specified in the Web.xml which is a key component of Struts framework. It retrieves the path from web.xml & transfer the request to particular action servlet. To process the request action servlet uses the values stored in form bean (when the JSP was submitted). After processing it returns a object of Action Forward which is again mapped to the next view that is to be shown. This mapping is specified in Web.xml.See the enteries of web.xml it will give u a clear picture.