JAVA
fming09
这个作者很懒,什么都没留下…
展开
-
struts1返回JSON
PrintWriter out = getresponse().getWriter();String str = JSONObject.fromObject(Object).toString();//String str = JSONObject.fromObject(Array).toString();out.writer(str);原创 2009-10-14 15:19:00 · 1246 阅读 · 0 评论 -
struts1返回JSON
PrintWriter out = getresponse().getWriter();String str = JSONObject.fromObject(Object).toString();//String str = JSONObject.fromObject(Array).toString();out.writer(str);原创 2009-06-18 16:36:39 · 634 阅读 · 0 评论 -
java xor加密算法
package fming;import java.io.ByteArrayOutputStream;import java.io.IOException;public class XOR { public static String encode(String str, String key) { String result = null; byte...2010-03-30 14:48:53 · 207 阅读 · 0 评论 -
The type BASE64Decoder is not accessible due to restriction on required library
eclipse中import时报错:Access restriction : The type BASE64Decoder is not accessible due to restriction on required library 解决方法:Project -> Properties -> libraries中先remove掉JRE System Librar...2010-03-31 09:50:40 · 144 阅读 · 0 评论 -
MyEclipse报错pulse has automatically detected drop-ins added or removed from your
MyEclipse每次运行都弹出一个对话框pulse has automatically detected drop-ins added or removed from your configuation... 解决方法:把MyEclipse->plugins下的com.genuitec.pulse2.common.http_2.6.1.200905042000删除...原创 2010-07-08 16:21:57 · 559 阅读 · 0 评论 -
Error starting static Resources 错误的解决
Tomcat 报 Error starting static Resources 错误的解决 1.清空Tomcat 5.0\work目录2.把server-config.xml中无效的连接配置都删除掉3.把/conf/Catalina/localhost下的所有文件删除...原创 2010-07-08 16:23:16 · 247 阅读 · 0 评论 -
redirect重定向传中文乱码问题
我用的是Spring的MVC,action之间sendRedirect()传中文参数时会出现乱码解决方法:传参方:String str = java.net.URLEncoder.encode(str,"UTF-8");接参方:String str = java.net.URLDecoder.decode(str,"UTF-8");...原创 2010-07-14 19:15:38 · 378 阅读 · 0 评论 -
tomcat文件夹显示文件列表
在项目目录中,输入项目的一个文件夹地址通常会报404错误,不方便调试 TOMCAT/conf/web.xml中找到listings 将属性改为true重启tomcat后再输入文件夹的路径可现实文件夹下的文件列表 ...原创 2011-03-03 16:56:39 · 135 阅读 · 0 评论