This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Each request is sent to an action which processes the request and then redirected to a JSP result page based on the execution of the action class. So the <action name>.action should be in the URL when we browse a web site built in struts. My question is why the <action name>.action is not in the browser's URLs.
James, If I understand correctly, "<action name>.action" is a JSP.
JSPs don't show up in the web browser history in Struts because they are results of a forward. In the browser's mind, it simply doesn't exist. Consider the steps involved in a forward: - browser requests URL - action processes - struts forwards to JSP - JSP is output - browser receives output of JSP
Since the browser only received one thing, it thinks the output of the JSP is the output of the URL it requested. The browser doesn't know something else happened in between.