`
中国龙
  • 浏览: 33719 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论
文章列表
Action的各项默认配置值 action没有class,默认为com.opensymphony.xwork2.ActionSupportaction没有method,默认为action的execute方法;result没有name,默认为success 配置一 <action name="index"> <result>admin/main.action</result> </action> 配置二 <action name="index" class="com.opensy ...

Action的搜索顺寻

Action的搜索顺寻 http://ip:port/project/package/actionName     http://localhost:8080/struts2/first/helloworldhttp://localhost:8080/struts2/first/wrong1/wrong2/wrong2/helloworld上列两个地址都可以反问到HelloWorldAction因为struts2倒序寻找action。如果连最后一个包都没有找到action,呢么struts2就会到默认的命名空间中寻找action,没有设置package或者设置为空那么就是默认的命名空间
因为Eclipse不知道Struts DTD 文件,所以没有提示,可以手动为Eclipse添加DTD文件 首先在下载的struts2 包中查找 *.dtd 就可以找到了   然后在eclipse中点击window->preference->在左上角输入xml->选中XML Catalog->           点击右边的Add       接下来选中你的DTD文件所在位置 接下来进行参数配置     就可以让struts2的配置有提示了。   其它配置(如Spring,Ibatis,DWR)等没有提示的时候可以按照以上步骤依葫芦画 ...
1。基础的应用所需要的架包 struts2-core-2.x.x jar : Struts2框架的可信类库 xwork-2.x.x.jar :XWork类库, Strts2在其上构建 ognl-2.6.x.jar:对象图导航语言(Object Graph Navigation Language),struts2框架通过其读写对象的属性 freemarker-2.3.x.jar:strts2 的ui标签的模板使用个FreeM阿让客人编写 commons-logging-1.1.x.jar:ASF出品的日志包,Struts2框架使用这个日子包来支持Log4j和JDK1.4+日志记 ...
     在高中时代的我就已经知道有博客这事了,也玩过一阵,就是没有认真去玩!      现在发现,把自己所学到的东西共享出来是一件不错的事,值得坚持。      冬天准备去部队了,有几天就坚持几天吧。希望我的博客能给遇到问题的人帮助,也希望各位大虾指出博中错误。本人初入程序员行列,多多指教。
aopalliance           http://sourceforge.net/projects/aopalliance/files/hibernate             http://sourceforge.net/projects/hibernate/files/hibernate3/struts                   http://struts.apache.org/download.cgi spring                  http://www.springsource.com/download/communityjakarta        ...
Attributes 架包下载地址:   http://commons.apache.org/attributes/     错误: 2011-4-16 16:09:52 org.apache.catalina.util.ExtensionValidator validateManifestResources 信息: ExtensionValidator[/xxx][commons-attributes-api-2.2.jar]: Required extension "ant" not found. 2011-4-16 16:09:52 org.apache.c ...
错误 :   org/objectweb/asm/Type异常 nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Type    解决方法:     原因是Spring中的cglib-nodep-2.x.x.jar与Hibernate中的cglib-2.2.jar相冲突! 两种框架整合时Spring中的cglib-nodep-2.x.x.jar是必须的,取消Hibernate中的cglib-2.2.jar即可  
  错误: MYSQL建表 index integer报错 刚开始以为是integer类型报错,后来建表 create table mune( id integer, menu_index integer); 执行正常,建表: create table mune( id integer, index integer); 执行失败 最后发现是index字段有问题,可能和MYSQL的索引起了冲突。   解决方法:   index/group 等字段都不能使用 在使用关系配置时不是用列名而是用属性名 在使用约束配置时不是用属性名而是用 ...
错误: java.lang.NoSuchMethodError: javax.persistence.UniqueConstraint.name() java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z 解决方法: JavaEE5.0的Web项目,在使用Hibernate3.5.1的注解功能时出现错误: 解决办法:删除对Java EE 5 Libraries的使用。 问题原因:javaee.jar中的部分类与hibernate-jpa-2.0-api-1.0.0.Final.jar存 ...
错误: ClassNotFound javax.persistence.cacheable 解决方法: javax.persistence.Cacheable 是 JPA 2.0 规范中的 需要加入hibernate-distribution-3.5.0-Final\lib\jpa目录下的hibernate-jpa-2.0-api-1.0.0.Final.jar到path中        
Global site tag (gtag.js) - Google Analytics