十月 29, 2014 4:56:55 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-8080"]
十月 29, 2014 4:56:55 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
十月 29, 2014 4:56:55 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
十月 29, 2014 4:56:55 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-8080"]
十月 29, 2014 4:56:55 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-bio-8009"]下面是servlet里寫的post方法代码
Service service = new ServiceImpl();
String filmName = request.getParameter("cname");
String actor = request.getParameter("cactor");
String director = request.getParameter("cdirector");
String sfilmType = request.getParameter("ctype");
String spricemin = request.getParameter("cpricemin");
String spricemax = request.getParameter("cpricemax");
FilmType filmType = null;
int ifilmType = 0;
float priceMin = 0;
float priceMax = 0;
// 所有的if都有問題
if (spricemin != null && (!spricemin.equals(""))) {
priceMin = Float.parseFloat(spricemin);// 有问题
}
if (spricemax != null && (!spricemax.equals(""))) {
priceMax = Float.parseFloat(spricemax);// 有问题
}
if (sfilmType != null && (!sfilmType.equals(""))) {
ifilmType = Integer.parseInt(sfilmType);// 有问题
if (ifilmType != 0) {
filmType = service.queryById(ifilmType);
}
}
FilmInfo filmInfo = new FilmInfo(director, actor, filmName, filmType);// 这句有问题
List<FilmInfo> list = service.query(filmInfo, priceMin, priceMax);
request.getSession().setAttribute("list", list);
request.getRequestDispatcher("list.jsp").forward(request, response);
删除红色部分就能正常启动了
求教为什么