I am trying to implement my project in Apache Struts 2, but I am not very familiar with this technology. Meanwhile, I saw somewhere that this is an effective method for creating Java web page pages (JSPs) in the WEB-INF folder. At the forum, they say that this will increase the security of the website, because the JSP page cannot be accessed directly through the URL, but only through its action.
I created several pages, but the problem is that I have to write in all my actions, such as:
<action name=".." class=".." method=".." > <result name="success"> /WEB-INF/pages/index.jsp</result> </action>
I got the right results by writing it like this: but is this a good way to write action pages like this ?. Will this cause any problems in my project? Is it possible to remove this / WEB-INF / in action using a namespace?
source share