在 J2EE 应用程序中,如果用户明确取出结束页面名称,那么不显示目录结构的最佳方法是什么?
例子:
/mycoolapp/somefolder/test.jsp
/mycoolapp/somefolder/ -- this will show all the files under 'somefolder'
重定向或向用户显示“不属于您的位置”的页面的最佳方式是什么。我想避免在我的应用程序的所有文件夹/子文件夹中提供 index.jsp。
正在使用的 Appserver 是 GlassFish。该应用程序也使用 Struts2 框架,但并非所有代码都在 struts2 中。一些代码使用传统的 Servlet