摘要: Junstudio BlogTABLE实现圆角表格的效果 New Document 表格内容 必须在CSS中定义bg_tbl1和bg_tbl2 阅读全文
posted @ 2013-08-18 01:05 freeman_rain 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 转载 http://duanmumu.blog.163.com/blog/static/1911133502012715104016481/// TODO Auto-generated method stubProperties props =newProperties();Session session =Session.getInstance(props);Message message =newMimeMessage(session);// message.setFrom(new InternetAddress("duan_lonshan@126.com"));Mul 阅读全文
posted @ 2013-08-17 10:08 freeman_rain 阅读(728) 评论(0) 推荐(0) 编辑
摘要: outlook对于html的支持是有限制的,在编写这些html的时候注意遵循以下规则:Never use colspans or rowspans.Always set correct dimensions for your tables and cells.Use spacer gifs rather than &nbps;.Always specify correct image sizes and never scale images up or down.Always add style="display:block;" to images.Avoid us 阅读全文
posted @ 2013-08-17 09:53 freeman_rain 阅读(1599) 评论(0) 推荐(0) 编辑
摘要: Https跳到http时session信息丢失的分析及解决方案博客分类:YMU开发Tomcat浏览器WebServlet我们在YMU(website monitoring)项目开发过程中发现一个关于登录功能的奇怪的问题。当按一般流程使用登录功能时是没问题的,即:点击官网 (http://YouMonitor.Us)的login链接,然后跳转到https://YouMonitor.Us/login.shtml,输入正确的用户名和密码后,则能正确转入功能页面(http协议)。而如果跳过第一步,直接在浏览器中输https://YouMonitor.Us/login.shtml,则不能正确转入功能页面 阅读全文
posted @ 2012-07-09 00:33 freeman_rain 阅读(1280) 评论(1) 推荐(0) 编辑
摘要: 已经成功关注 zddava 的动态Tomcat的Session管理(一) - Session的生成博客分类:TomcatTomcat配置管理ApacheAccessF#Session对象的创建一般是源于这样的一条语句:Session session = request.getSession(false);或者Session session = request.getSession();如果不在乎服务器压力可能多那么一点点的话。在Tomcat的实现中,这个request是org.apache.catalina.connector.Request类的包装类org.apache.catalina.c 阅读全文
posted @ 2012-07-08 23:47 freeman_rain 阅读(507) 评论(0) 推荐(1) 编辑
摘要: http://tomcat.apache.org/tomcat-4.0-doc/config/context.htmlThecontext pathof this web application, which is matched against the beginning of each request URI to select the appropriate web application for processing. All of the context paths within a particularHostmust be unique. If you specify a con 阅读全文
posted @ 2012-07-05 01:04 freeman_rain 阅读(245) 评论(0) 推荐(0) 编辑
摘要: iCalendar 简介 iCalendar,简称“iCal”,是“日历数据交换”的标准(RFC 2445),该标准提供了一种公共的数据格式用于存储关于日历方面的信息,比如事件、约定、待办事项等。它不仅允许用户通过电子邮件发送会议或者待办事件等,也允许独立使用,而不局限于某种传输协议。 目前,所有流行日历工具比如:LotusNotes、Outlook、GMail 和 Apple 的 iCal 都支持 iCalendar 标准,其文件扩展名为 .ical、.ics、.ifb 或者 .icalendar。C&S(Calendaring and Scheduling) 核心对象是一系列日历和 阅读全文
posted @ 2012-06-08 00:01 freeman_rain 阅读(1138) 评论(0) 推荐(0) 编辑
摘要: Log4J的配置文件(Configuration File)就是用来设置记录器的级别、存放器和布局的,它可接key=value格式的设置或xml格式的设置信息。通过配置,可以创建出Log4J的运行环境。1. 配置文件Log4J配置文件的基本格式如下:#配置根Loggerlog4j.rootLogger=[level],appenderName1,appenderName2,…#配置日志信息输出目的地Appenderlog4j.appender.appenderName=fully.qualified.name.of.appender.class log4j.appender.appender. 阅读全文
posted @ 2012-05-07 08:25 freeman_rain 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 看了几个文档,还是这个最全面,最后附上自己的日记,早遇到这个文章就不需要整理笔记了1. log4j 的配置文件Log4j 支持两种配置文件格式,一种是 XML 格式的文件,一种是 Java 特性文件 lg4j.properties (键 = 值)。1.1. log4j configuration scripts in properties formatlg4j.properties 文件作为作为常用的配置文件的方法如下:Ø 配置根 LoggerLogger 负责处理日志记录的大部分操作。其语法为:log4j.rootLogger = [ level ] , appenderName, 阅读全文
posted @ 2012-05-07 08:23 freeman_rain 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 一、生成根证书openssl genrsa -out root.key 1024openssl req -new -key root.key -out root.csropenssl x509 -req -in root.csr -out root.crt -signkey root.key -days 3650二、生成服务器证书申请openssl req -new key server.key -out server.csr如果是keytool,可用如下方式生成证书申请keytool -certreq -alias server -sigalg "MD5withRSA" 阅读全文
posted @ 2012-05-07 00:55 freeman_rain 阅读(534) 评论(0) 推荐(0) 编辑