![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javaee
ihefe
这个作者很懒,什么都没留下…
展开
-
servlet与php的xmlrpc
#sudo apt-get install sun-java6-jdk sun-java6-fonts sun-java6-plugin#sudo vim /etc/environmentJAVA_HOME=/usr/lib/jvm/java-6-openjdk/PATH=/usr/share/tomcat6/lib/xmlrpc-server-3.1.3.jar:/usr/share/tomcat6/lib/xmlrpc-client-3.1.3.jar:/usr/share/tomcat6/原创 2010-12-04 14:55:00 · 1690 阅读 · 0 评论 -
base64解码编码
编码代码: FileInputStream fileForInput = new FileInputStream( "/var/www/servlet/1.png"); String content = new String(); byte[] bytes = new byte[fileForInput.available()]; fileForInput.read(bytes); content = new sun.misc.原创 2010-12-04 16:01:00 · 785 阅读 · 0 评论 -
java,返回多类型数组
<br /> <br />xmlrpc 返回object多类型数组<br /> public Object database(int id) { Object[][] rowData=new Object[5][]; String html=new String(); try { // The newInstance() call is a work around原创 2010-12-07 17:19:00 · 1727 阅读 · 0 评论 -
Map判断值类型
<br />判断值类型函数<br />private static String print_pk(Map hm){ String sqlKeyAndValue=""; String value=""; Set s = hm.entrySet(); Iterator i = s.iterator(); while(i.hasNext())原创 2010-12-09 18:12:00 · 3982 阅读 · 0 评论 -
servlet目录结构
<br />serlvet--------index.jsp<br />|<br />----WEB-INF----classes----*.java *.class<br /> | |<br /> | ----test---hello.java hello.class<br /> |<br /> ----web.xml<br /> <br />web.xml<br /> <br /原创 2010-12-15 18:05:00 · 1949 阅读 · 0 评论 -
.properties读取
String DBhost="";int selectCount; Properties prop = new Properties(); InputStream in; in = getClass().getResourceAsStream("a.properties");//平级,classes下 prop.load(in); Set keyValue = prop.keySet(); for (Iterator it原创 2010-12-15 18:20:00 · 602 阅读 · 0 评论 -
tomcat安全管理策略
在使用apache.xmlrpc和jdbc碰到tomcat安全问题HTTP Status 500 -type Exception reportmessagedescription The server encountered an internal error () that prevented it from fulfilling this request.exceptionjavax.servlet.ServletException: Could not initialize class org.apa原创 2010-12-17 18:44:00 · 2881 阅读 · 0 评论