解决方案 »
- open-flash-chart怎么不断更新数据
- tocmat
- hibernate插入 急```
- tomcat如何对响应头进行编码的,是ISO8859_1还是别的什么?高人请指点!
- 请教:如何在退出系统时,清除IE中的历史记录
- 能不能在参数里带上整个form的内容?比如 aa.jsp?para=form
- java.lang.OutOfMemoryError 异常问题,无力了
- 急!请教XXXX.jsp?ID=.... 的传值问题
- 在execute中验证信息,错误怎么在jsp页面上显示啊?
- 大量的源码,教程下载...
- 怎么让jsp中默认的值不显示
- hibernate 注解方式:父类定义的@ManyToMany怎么指定给子类映射
* 删除
*/
@RequestMapping(value = "/{id}/delete")
public void delete(@PathVariable("id") Integer id,HttpServletResponse response) {
response.setContentType("text/html;charset=utf-8");
PrintWriter out = null;
try {
out = response.getWriter();
if (newsCatService.delete(id)>0) {
out.print("1");
} else {
out.print("0");
}
out.flush();
out.close();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (null != out) {
out.flush();
out.close();
}
}
}