摘要: Base64是一种基于64个可打印字符来表示二进制数据的表示方法,也是一种常见的传输编码方式。图片是以二进制形式存储在磁盘上,因此可以以二进制形式表示,也可以对二进制进行base64编码。与二进制形式相比较更加简短,且具有不可读性,即肉眼不可直接看出。因此,网页上可将较小图片转换成为base64编码的字符形式传输,可减少网页上的图片对server单独发起的http请求,进而减少服务器负载。实例:.linkedin {background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAA 阅读全文
posted @ 2012-12-02 19:52 wanpp590 阅读(1833) 评论(0) 推荐(0) 编辑
摘要: 使用struts校验框架验证表单输入很方便,有两种使用方式:1.添加到Action类的validate方法验证用户的输入。2.使用XML表单验证Form Validation Using XML(当然也可以用注释annotation但和xml类似)。原理是一样的,这里以第一种方式说明struts校验框架执行的时机。struts校验框架执行时机原文:When the user presses the submit button on the register form, Struts 2 will transfer the user's input to the personBean&# 阅读全文
posted @ 2012-10-07 19:31 wanpp590 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 错误现象:用户注册处理stuts.xml:<action name="userInfo_*" class="com.indexofme.action.UserInfoAction" method="{1}"><result name="success">/WEB-INF/view/success.jsp</result><result name="input">/WEB-INF/view/register.jsp</result>< 阅读全文
posted @ 2012-10-04 17:18 wanpp590 阅读(1977) 评论(0) 推荐(0) 编辑
摘要: 严重: Actual exception Caught Exception while registering Interceptor class org.crazyit.auction.action.interceptor.AuthorityInterceptor - interceptor - file:/D:/Apache%20Software%20Foundation/apache-tomcat-6.0.35/webapps/auction_Eclipse/WEB-INF/classes/struts.xml:17:74原因:配置出错,在struts.xml中找不到配置的org.cra 阅读全文
posted @ 2012-08-31 08:17 wanpp590 阅读(2589) 评论(0) 推荐(0) 编辑
摘要: 严重: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ClassFormatError: Il 阅读全文
posted @ 2012-08-31 08:15 wanpp590 阅读(3410) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-22 13:57 wanpp590 阅读(7) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-06-17 10:10 wanpp590 阅读(2) 评论(0) 推荐(0) 编辑
摘要: View Code 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <sys/types.h> 4 #include <unistd.h> 5 #include <string.h> 6 #include <sys/stat.h> 7 #include <fcntl.h> 8 #include <error.h> 9 #include <wait.h> 10 #define PSIZE 2 11 #define total_in 阅读全文
posted @ 2012-06-05 21:44 wanpp590 阅读(233) 评论(0) 推荐(0) 编辑
摘要: View Code 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <sys/types.h> 4 #include <unistd.h> 5 #include <string.h> 6 #include <sys/stat.h> 7 #include <fcntl.h> 8 #include <error.h> 9 #include <wait.h>10 #define PSIZE 211 12 int main(){13 i 阅读全文
posted @ 2012-06-01 23:21 wanpp590 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 挂载光盘,解压光盘内的tar安装包,并安装(Install VMware Tools in a Linux Guest)下面是vmware帮助文档里在linux下安装vmware tools的步骤,觉得不错。其中红字为重要步骤。Before you begin, make sure the virtual machine is powered on and the guest operating system is running.To install VMware Tools in a Linux guest1On the host, select VM > Install VMwar 阅读全文
posted @ 2012-05-31 19:50 wanpp590 阅读(1203) 评论(0) 推荐(0) 编辑