welcome-file-list配置形式:
<welcome-file-list> <welcome-file>/main/main.jsp</welcome-file> </welcome-file-list>
浏览器输入main/main.jsp打开项目没有问题:
http://localhost:8080/
项目?? 打开就会丢失样式
http://localhost:8080/ 项目/main/main.jsp? 完整显示
目前的解决方法:
welcome-file-list配置:
<welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list>
index.jsp代码:?
<html> <head> <script type="text/javascript"> location.href="main/main.jsp"; </script> </head> <body> </body> </html>