自行车出租系统错误集2

1.MySQL数据库的日期格式:time是时分秒,Date才是年月日,DateTime是年月日时分秒。

2.servlet查询到的list如何传到页面显示:request.setAttribute("rentList",rentList),前台用c:foreach循环接收,${requestScope.rentList}

刚才后台查到了,页面不显示,是因为把list的名字写错了。rentList的L是大写的。

3.java.net.SocketException : Unrecognized Windows Sockets error: 0: JVM_Bind

tomcat端口被占用。因为test工程在自带tomcat上启动着,将test的猫关闭,即解决。

4.The function getPhone must be used with a prefix when a default namespace is not specified

在正则表达式中${}不能调用方法,即不可以${oauser.getUserId()},而是要${oauser.userId}。也就是直接用模型里面的属性就可以了。

 

posted on 2015-05-07 21:20  泽口靖子  阅读(149)  评论(0编辑  收藏  举报

导航