1.action向客户端发送执行指定javascript方法的字符串 answer:形式如:response.getWrite().write("<script>parent.callback()</script>"); return null; 2.action向客户端发送javascript文本 answer:形式如:response.getWrite().write("var checkboxEle = document.createElement('input');checkboxEle.type='checkbox';document.getElementById('di ...
jspSmartUpload组件 answer:jspSmartUpload是一个非常容易使用的用于多文件和其它表单字段一起上传的组件。下面说明使用: public class MultiUploadAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form,HttpServletRequest request, HttpServletResponse response)throws Exception { // TODO Auto-generated method ...
使用struts时有时设置了字符过滤器或者覆盖process方法也没用,可以用这样的办法解决 在每个JSP页面中设置: response.setCharacterEncoding("gb2312"); request.setCharacterEncoding("gb2312");
Libra Man
搜索本博客
最近加入圈子
存档
最新评论