+ -
当前位置:首页 → 问答吧 → jquery如何将信息传到struts-config中的?

jquery如何将信息传到struts-config中的?

时间:2011-11-24

来源:互联网

public ActionForward add(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception
 { MessageForm messageForm = (MessageForm)form; 
Message message = new Message(); 
BeanUtils.copyProperties(message, messageForm);
messageDao.add(message); //return mapping.findForward("toList");
response.setContentType("appliction/json;charset=UTF-8"); 
response.getWriter().println("{\"state\": \"ok\"}"); 
return null; }

用JQUERY后return null ,这个strust-confing怎么知道传过来的是toList?

作者: yangyangisse   发布时间: 2011-11-24

我猜你是用jquery的 ajax异步提交,你可以先了解一下。什么是ajax。

作者: netcexo   发布时间: 2011-11-24