根据ID填充文本框(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-03-01 01:36 点击:次
private UserService userService;
public ActionForward executeAction(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
String srid=request.getParameter("srid");
TuOafSrMainTO srMain=userService.getRemarkBySrId(srid);
response.setContentType("application/json;charset=gbk");
response.setCharacterEncoding("gbk");
PrintWriter pw = response.getWriter();
pw.write(JSONUtils.valueToString(JSONSerializer.toJSON(srMain)));
pw.flush();
return null;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
}
摘自 xinghui_liu的专栏
相关新闻>>
- 发表评论
-
- 最新评论 更多>>