Hello struts users,
I just have a little question about application server
configuration. Well, i never use direct link between JSP,
i always use Action even if there is nothing to do, then
I can control the path of users into my site.
That's why I don't want user be able to call directly a
JSP. I tried to disable JSP access in my web.xml file but
it works too good. Indeed, even Action forwarding (JSP)
are concerned about this rule, so I can't visualize any
JSP.
Here is the concerned code in (web.xml):
<servlet>
  <servlet-name>controlFlowException</servlet-name>
  <jsp-file>controlFlowException.jsp</jsp-file>
</servlet>

<!-- Control Flow Mapping -->
<servlet-mapping>
  <servlet-name>controlFlowException</servlet-name>
  <url-pattern>*.jsp</url-pattern>
</servlet-mapping>

Reply via email to