服务于区块链开拓者

www.zhidnet.com

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页

2013年4月11日

摘要: 在struts2中的ActionContext相对于servlet中的servletRequst ,通过servletRequst访问session,application的方法为ActionContext actionContext=ActionContext.getContext();其中actionContext相当与jsp页面中的request对象。map session=actionContext.getSession();actionContext.getApplication().get("propertyName");actionContext.getApp 阅读全文
posted @ 2013-04-11 23:28 知点网 阅读(190) 评论(0) 推荐(0)

2013年4月3日

摘要: <!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-04-03 15:00 知点网 阅读(350) 评论(0) 推荐(0)

2013年3月30日

摘要: position的四种取值 : static:static定位就是不定位,出现在哪里就显示在哪里,这是默认取值,只有在你想覆盖以前的定义时才需要显示指定relative:relative 就是相对元素static定位时的位置进行偏移,如果指定static时top是50象素,那么指定relative并指定top是10象素时,元素实际top就是60象素了。 absolute:absolute绝对定位,直接指定top、left、right、bottom。有意思的是绝对定位也是“相对”的。它的坐标是相对其容器来说的。容器又是什么呢,容器就是离元素最近的一个定位好的“祖先”,定位好的意思就是其Posit 阅读全文
posted @ 2013-03-30 11:26 知点网 阅读(834) 评论(0) 推荐(0)

2013年3月28日

摘要: 迁入csdn 阅读全文
posted @ 2013-03-28 12:39 知点网 阅读(223) 评论(1) 推荐(0)

摘要: <!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-28 09:35 知点网 阅读(588) 评论(0) 推荐(0)

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 知点网 阅读(228) 评论(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 知点网 阅读(599) 评论(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 知点网 阅读(208) 评论(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 知点网 阅读(213) 评论(0) 推荐(0)

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 26 下一页