急,在等..
在基于struts开发中,如何禁止在ie地址栏中直接输入jsp的地址来访问jsp。
如:输入http://localhost:9080/webtest/jsp/login.jsp. 来访问login.jsp ,ie中显示 "无法找到网页" (即:常见的地址栏错误).
注:容器为WebSphere..
目录结构为:
webtest
|---/jsp/
|--- login.jsp
|--- main.jsp
|---/web-inf
|--- /classes
|--- struts-config.xml
|--- ....
要求:jsp目录不放到web-inf目录下.