最新回答 / 少说多敲
setter提示用户名用的;也就是跳转之后如果再取值的话可以从这取到(getter);视频里最后登录成功没有提示用户名所以不写也行;但是视频开头要求是跳转登录成功页面并提示用户名
2017-03-21
最新回答 / 慕运维3916613
public Items(int id,String name,String city,int price,int number,String picture) { this.id = id; this.name = name; this.city = city; this.picture = picture; this.price = price; this.number = number; }
2017-03-18
已采纳回答 / qq_莫非
1、jsp中写的那个连接数据库文件有问题2、数据库的服务没有启动<servlet-mapping> <servlet-name> TestServlet </servlet-name> <url-pattern> /servlet/TestServlet </url-pattern> </servlet-mapping> <form action...
2017-03-13
已采纳回答 / 散华礼之弥
这种时候首先看Console中是否有错误输出(八成是代码那块儿写错了);其次还可以通过查看页面源码的方式,看看是不是哪里写错了;或者用浏览器的调试方法。
2017-03-11