上一页 1 ··· 15 16 17 18 19
摘要: 简单的替换操作,基本不需引jar包。首先写一个工具类。package xuzs.servlet;import java.io.BufferedReader;import java.io.ByteArrayOutputStream;import java.io.FileNotFoundException;import java.io.FileReader;import java.io.IOException;import java.io.StringReader;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.D 阅读全文
posted @ 2013-01-12 01:46 许仙儿 阅读(522) 评论(0) 推荐(0) 编辑
摘要: package xuzs.servlet;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;public class ReceiveSe 阅读全文
posted @ 2013-01-09 01:09 许仙儿 阅读(659) 评论(0) 推荐(0) 编辑
摘要: To logout an user from the SP an LogoutRequest is sent. The data needed about the user is the SessionIndex and NameID from the data recived at login. I my case in the Assertion in the Artifact Resolve Response.//IPR Ergogroup ASpublic static void doSynchronousLogout(final HttpSession sessionToLogout 阅读全文
posted @ 2013-01-07 17:26 许仙儿 阅读(1165) 评论(0) 推荐(0) 编辑
摘要: 近日心情不爽,项目做烦了,就不想做项目了,停了下来,想做些JavaMail的开发。 上网看了些教程,发现网上的文章虽然很多,但大都有些问题,包括:有些文章写得很全,但感觉太纷繁复杂,没有个提纲,感觉很乱。有些文章没有把问题写全,对于很多情况,程序能运行,但邮件就是发不了。 对于JavaMail,最基础的功能就是邮件的发送和接收,在这里,我先讲一讲邮件的发送。 在写具体的程序前,先讲一些概念。1.邮件的发送:如果你的邮件地址是a@host.com,而你要用这个邮箱发送一封邮件到to@tohost.com,这个发送过程是怎样的呢,你以为是先连接到tohost.com这服务器上,然后把邮件... 阅读全文
posted @ 2013-01-04 22:54 许仙儿 阅读(451) 评论(0) 推荐(0) 编辑
摘要: Equal, Greater or Less ThanAs well as the familiar equals sign (=) it is also very useful to show if something is not equal to (≠) greater than (>) or less than (<)These are the important signs to know:=If two values are equal, we use the "equals" signexample:2+2 = 4≠If two values ar 阅读全文
posted @ 2013-01-01 11:52 许仙儿 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 127.0.0.1是回送地址,指本地機,一般用來測試使用。回送地址(127.x.x.x)是本機回送地址(Loopback Address),即主機IP堆棧內部的IP地址,主要用於網絡軟件測試以及本地機進程間通信,無論什麼程序,一旦使用回送地址發送數據,協議軟件立即返回之,不進行任何網絡傳輸。 IP地址的四大類型: IP地址根據網絡號和主機號來分,分為A、B、C三類及特殊地址D、E。全0和全1的都保留不用。 A類:第一個字節為網絡號,後三個字節為主機號。該類IP地址的最前面為“0”,所以地址的網絡號取值於1~126之間。一般用於大型網絡。 B類:前兩個字節為網絡號,後兩個字節為主機號。... 阅读全文
posted @ 2012-12-31 00:55 许仙儿 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 首先下载两个文件,http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/bin/extras/tomcat-juli-adapters.jarhttp://archive.apache.org/dist/tomcat/tomcat-6/v6.0.28/bin/extras/tomcat-juli.jar其中v6.0.28为tomcat的版本号,请根据具体版本进行修改后下载,以保证最后正常效果。注意:%CATALINA_HOME%\bin本身存在tomcat-juli.jar,需要强制替换掉。接下去再保证已经有log4j的情况下。按照我写的 阅读全文
posted @ 2012-12-21 22:41 许仙儿 阅读(312) 评论(2) 推荐(0) 编辑
摘要: 描述简单清晰!-------下面这个例子看起来有些奇怪://: Parcel6.java// A method that returns an anonymous inner classpackage c07.innerscopes;public class Parcel6 { public Contents cont() { return new Contents() { private int i = 11; public int value() { return i; } }; // Semicolon required in this case } ... 阅读全文
posted @ 2012-11-25 15:57 许仙儿 阅读(194) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19