1.在struts-config.xml中配置<forward>标签时候,通过地址传递参数,想把参数加在后面
<forward name="ofail" path="doLinks.do?command=getLinks&where=no" redirect="true"/>,结果报错,应该修改&为&
如:<forward name="ofail" path="doLinks.do?command=getLinks&where=no" redirect="true"/>
2.数据库乱码问题:在连接数据库类里面的url参数设置如下:
jdbc:mysql://localhost:3306/zhuojh?useUnicode=true&characterEncoding=UTF-8
在后面加上这两个参数。就不是乱码了。或者只加上后面个参数也行滴