`
lokepaqi
  • 浏览: 46400 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
在servlet中,一般跳转都发生在doGet, doPost等方法里面。 一、原理 1) redirect 方式 response.sendRedirect("/a.jsp"); 页面的路径是相对路径。sendRedirect可以将页面跳转到任何页面,不一定局限于本web应用中,如: response.sendRedirect( ...
<?xml version="1.0" encoding="UTF-8"?> <process key="counterSign" name="会签" xmlns="http://jbpm.org/4.4/jpdl"> <start g="338,-19,48,48" name="start1"> <transition g="-52,-22" name=" ...
一、action的写法 package action.mapAction; import java.util.Map; public class MapAction { private Map<String, String> map; public String test() { System.out.println(map.size()); return "success"; } public Map<String, String> getMap() { return map; } ...

注解map的方式

@ElementCollection @JoinTable(name="document_otherPops",joinColumns={@JoinColumn(name="documentId")}) public Map<String,JavaType> getOtherProps() { return otherProps; }
这是,由于tomcat的bug导致的,路径中不能有空格,将整个路径中的空格去掉。 当然,发布的时候,将struts2的开发模式设置为false,也可以在有空格路径的tomcat运行。
报错: java.lang.IllegalStateException: getOutputStream() has already been called for this response的错误. Struts方法之间调用引起的。 因为:每个方法都返回的是一个ActionForward对象,而response是ActionForward对象参数,所以就会使response冲突! 故,将最后的return "SUCCESS"改为 return null .不将其交由sturts管理. 如: /** * 查看图片 * @return * @throw ...
mysql 的#1366 - Incorrect integer value错误 插入数据的时候只能 null   不能使用‘’   怎么解决? mysql版本是5.0.45 插入的字段默认是null 插入的时候只能使用null 不能使用 ‘’   否则就会报错 mysql_query("set sql_mode='ANSI'"); 将mysql的sql mode模式修改为标准模式 或者修改my.ini(my.cnf)中的sql-mode值
地址: http://tmsoft.lsxy.com/index.php?load=read&id=514
Global site tag (gtag.js) - Google Analytics