首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

response.getWriter().write("google");这句话为什么打印不出来呢?解决办法

2012-01-19 
response.getWriter().write(google)这句话为什么打印不出来呢???publicActionForwardexecute(ActionMa

response.getWriter().write("google");这句话为什么打印不出来呢???
public   ActionForward   execute(ActionMapping   mapping,   ActionForm   form,
HttpServletRequest   request,   HttpServletResponse   response)   {
//   TODO   Auto-generated   method   stub

try   {
response.getWriter().write( "google ");
}   catch   (IOException   e)   {
//   TODO   Auto-generated   catch   block
e.printStackTrace();
}
return   null;
}

一运行这个action什么反应也没有

[解决办法]
中关村 <JAVA> 高级群 40483505 欢迎高手加入讨论学习!
[解决办法]
你直接用OUT对像来打印啊.
[解决办法]
你想把代码打到那去!!!!!!
[解决办法]
response就是不能打印出东西到页面上的,用out

热点排行