服务于区块链开拓者

www.zhidnet.com

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年3月27日

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb23 阅读全文
posted @ 2013-03-27 22:37 知点网 阅读(230) 评论(0) 推荐(0)

摘要: Struts2中使用框架validation框架进行校验时必须将ActionName-validation.xml放在和action编译出的.class文件放在同一个路径下否则校验失败。校验文件配置:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator1.0.2//EN""http://www.opensymphony.com/xwork/xwork 阅读全文
posted @ 2013-03-27 21:22 知点网 阅读(325) 评论(0) 推荐(0)

摘要: struts2的国际化实现过程--刚开始写的时候按照网上说的那样配置完,结果一测试,乱码。然后自己在网上查了很多关于struts2国际化乱码的文章,写的都不全面,比如native2ascii.exe在哪里都没有说明后面摸索了一下,终于不乱码了。写下这篇文章方便自己和大家以后查看第一步--有两种方法A、在src下面新建一个struts.properties,加入里面的内容为:struts.custom.i18n.resources=messagesource其中:struts.custom.i18n.resources为固定的,messagesource为自己定义的B、struts.xml里面添 阅读全文
posted @ 2013-03-27 20:54 知点网 阅读(601) 评论(0) 推荐(0)

摘要: 异常信息:The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag.环境:tomcat 6.0 struts2.21web.xml的配置: & 阅读全文
posted @ 2013-03-27 20:53 知点网 阅读(210) 评论(0) 推荐(0)

摘要: 不晓得是不是struts2版本的问题,小的初学,在使用struts2.1.6中遇到不少问题,不知道大家有没有遇到1.与struts2.0.14不同,要想正常使用struts2.1.6,至少需要6 个jar包:struts2-core-2.1.6.jarfreemarker-2.3.13.jarcommons-logging-1.0.4.jarognl-2.6.11.jarxwork-2.1.2.jarcommons-fileupload-1.2.1.jar2.今天在使用零配置( zero configuration)的时候按照struts2.0.14中那样在sturts2-core-2.0.1 阅读全文
posted @ 2013-03-27 20:42 知点网 阅读(214) 评论(0) 推荐(0)