I have just started working on a struts2 project. I have seen the power of actions in struts.
i just want to Know few things
1.When a client asks for a page through the search engine does the server direct the request through an action which maps the jsp?
2. If the ans to the above question is no how do we set-up all the bean properties in the action class required for rendering the page?
3.If the ans to the above question is no how to maintain data confidentiality as all interceptors are built around action
If your JSP pages are publicly accessible and a user goes to them directly (e.g., from a search engine or bookmark), then no, your action would not be invoked.
Your JSPs should be placed under the WEB-INF directory (e.g., /WEB-INF/jsp) so that users cannot get to them directly. In Struts2 (any many other MVC frameworks), JSPs are only the templates for your view layer and should not be accessed directly.
There are several comments in reply to one of the answers in Problem with moving JSPs under WEB-INF directory that reinforce this: