![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
s2sh
limon758
这个作者很懒,什么都没留下…
展开
-
SSH Hibernate The given object has a null identifier: com.ssh.dao.uinfo
The given object has a null identifier: com.ssh.dao.uinfo com.ssh.dao.uinfo这个实体类对象的主键值为空,需要给主键赋值 黑色头发:http://heisetoufa.iteye.com/原创 2011-07-18 15:36:50 · 84 阅读 · 0 评论 -
struts2 重定向,从action直接提交到另一个action,带参数
重定向需要在struts.xml中配置redirectAction action需要有个全局变量或实体,并且需要有setter/getter 如: 1.action: [code="java"] package com.test.action; public class TestAction extends BaseAction implements Preparable ...原创 2013-05-30 17:44:23 · 560 阅读 · 0 评论 -
struts2 404 Invalid field value for field "xxx".
struts2用post做提交的时候 就报错 404 Invalid field value for field "字段名称". 但是以超链的方式就正常 或者在页面里再加一个原创 2012-12-09 22:07:12 · 207 阅读 · 0 评论 -
ssh2 could not get next sequence value
主键生成方式为:native 但当添加数据的时候会报错could not get next sequence value 经检查是hibernate.dialect的值设置错了 要么改正,要么干脆删掉 黑色头发:http://heisetoufa.iteye.com/...原创 2012-08-28 15:38:35 · 144 阅读 · 0 评论 -
ssh Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL)
错误信息 [code="java"]org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AU...原创 2012-08-28 12:31:33 · 91 阅读 · 0 评论 -
转 struts2 struts.xml result-type 配置 result配置
Xml代码 <result name="showSource" type="plainText"> <param name="location">/xxx.jsp</param> <param name="charSet">UTF-8</param>//指原创 2013-03-29 17:00:37 · 112 阅读 · 0 评论 -
Spring 在普通java类中调用Sprng容器对象,手动注入获取bean,注释方式,Annotaction
获取ApplicationContext.xml中的bean [code="java"]BeanFactory factory = new ClassPathXmlApplicationContext("classpath:/applicationContext*.xml"); ITestService testService = (ITestService)factory.getBe...原创 2012-07-20 16:08:49 · 262 阅读 · 0 评论 -
ssh2 struts2从form取值的三种方式
如何把登陆页面中的用户名传递到登录成功的页面中呢? 有三种方式, 1,使用默认的action的传递方式。 2,自定义一个vo,在action中使用这个vo 3,使用ModelDriven的方式。 下面分别叙述。 1,使用默认的action的传递方式。 action文件如下: package struts2.login; public class LoginAction...原创 2012-03-12 18:55:09 · 95 阅读 · 0 评论 -
ssh2 struts2 There is no Action mapped for namespace / and action name
去掉struts2.xml中的原创 2012-03-12 18:31:39 · 76 阅读 · 0 评论 -
SSH Unable to instantiate Action, graphShowAction
Unable to instantiate Action, graphShowAction, defined for 'getgraphperlist' in namespace '/com.tdrh.hpit.graphshow'graphShowAction applicationContext.xml中没有引用分配置文件 黑色头发:http://heisetoufa.iteye...原创 2011-10-26 10:19:47 · 102 阅读 · 0 评论 -
s2sh ssh 前台文本框的值传给后台,取值,获取值
前台 [code="html"][/code] 后台 [code="java"]ActionContext ac=ActionContext.getContext(); HttpServletRequest request=(HttpServletRequest) ac.get(ServletActionContext.HTTP_REQUEST); String person...原创 2011-10-20 11:17:55 · 269 阅读 · 0 评论 -
struts2 ssh ssh2 HTTP Status 404 - No result defined for action
是ssh2开发的项目 在提交的时候,一提交就报错 HTTP Status 404 - No result defined for action com.xxx.xxxAction and result... 经过反复检查,哪里配置都没有问题 最后发现,写了一个hidden,这个hidden对应一个实体字段.而那个实体的字段是int型.这个hidden的value我给随便写了几个字符放在...原创 2012-12-21 19:03:57 · 99 阅读 · 0 评论