Troubleshooting: JSP unable to display content in Spring MVC
来源:互联网 发布:淘宝仓储服务 编辑:程序博客网 时间:2024/06/07 14:23
I encountered a strange problem in displaying jsp pages in Spring MVC.
I correctly configured view mapping, and jsp file can be found and read by browser, but only code not effect are displayed.
I cannot find others have similar problem.
Finally, after trying lots of possibilities, I found that I incorrectly configured url-pattern in web.xml:
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
The correct one is :
<servlet-mapping>
<servlet-name>spring-mvc</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
0 0
- Troubleshooting: JSP unable to display content in Spring MVC
- xhost: unable to open display
- vncviewer: unable to open display ""
- vncviewer: unable to open display ""
- xhost: unable to open display ""
- Binding Entities and Their Children to Java JSP Form Elements in Spring Framework MVC
- Spring MVC – How To Include JS Or CSS Files In A JSP Page
- Spring MVC – How to include JS or CSS files in a JSP page
- Spring MVC – How to include JS or CSS files in a JSP page
- Learn to use filter to display content
- Spring MVC Content Negotiation
- Unable to compile JSP
- xhost unable to open display解决方法(转)
- linux解决xhost: unable to open display
- linux解决xhost: unable to open display
- xhost unable to open display解决方法
- linux解决xhost: unable to open display
- linux解决xhost: unable to open display ""(
- BSTR及转换 各种编码
- OCCI调用存储过程实现批量插入
- 修正DHCPD不能启动的问题
- WIRESHARK之SSL解密
- CCScrollView及CCScrollView与CCMenu问题
- Troubleshooting: JSP unable to display content in Spring MVC
- 解决无线路由器wds桥接频繁掉线的办法
- Qwt在windows xp下的安装与配置
- 采用busybox的制作嵌入式Linux根文件系统
- Tablespaces, Datafiles, and Control Files
- MQ 之 为什么,何时使用ActiveMQ
- 对象初始化表达式
- linux yum命令详解
- Android物理键盘与虚拟键盘同时使用