Skip to main content

Posts

Showing posts from December, 2015

Struts Flow

Hi All,     Here are the simple 10 steps for how Struts Framework will work - It is a general question in many Interviews!     Initially let us assume /login.do is our action - the result will be successful login.  Here I will explain 15 steps how/what Struts framework will do ? As end user triggerred / clicked on /login.do - > as usual it is a web application - first it will look for Web.xml So here - Web.xml loading is the first step! In Web.xml it looks for *.do mapping and it finds the Struts plug-in  i.e., ActionServelt and it loads the same. Example of Mapping:    <servlet-name>action</servlet-name>    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>    .....    <servlet-mapping>    <servlet-name>action</servlet-name>    <url-pattern>*.do</url-pattern>    </servlet-mapping> As part of load...