passer1991

随笔分类 -  J2EE

1 2 下一页

eclipse项目发布到tomcat后的默认部署路径
摘要:eclipse项目发布到tomcat后的默认部署路径是不确定的,但是可以通过在项目中打印的方式显示eclipse默认的部署路径,比如在springmvc中String basePath=ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("/") ;System.out.println(basePath);这样就可以在控制台看到路径了。 阅读全文

posted @ 2014-01-17 14:35 passer1991 阅读(248) 评论(0) 推荐(0)

jetty 下载地址
摘要:http://olex.openlogic.com/packages/jetty#package_detail_tabs 阅读全文

posted @ 2013-12-23 20:57 passer1991 阅读(220) 评论(0) 推荐(0)

在ssh框架下使用ajax ,success error 方法都没有执行
摘要:在ssh框架下使用ajax ,success error 方法都没有执行,大概是前台没有从输出流中得到任何数据,所以success和error方法都没有执行。这个时候想输出流中写一些数据,比如使用 PrintWriter writer = ServletActionContext.getResponse().getWriter(); writer.print("success"); return null;上面那样就可以了。 阅读全文

posted @ 2013-11-26 21:46 passer1991 阅读(303) 评论(0) 推荐(0)

json-lib 之jsonConfig详细使用
摘要:json-lib 之jsonConfig详细使用 阅读全文

posted @ 2013-10-05 10:33 passer1991 阅读(169) 评论(0) 推荐(0)

javax.servlet.ServletException: java.lang.LinkageError 基于JBPM4的web项目jsp页面发布出错
摘要:http://www.cnblogs.com/leshem/archive/2009/09/28/1575792.html 阅读全文

posted @ 2013-09-29 22:55 passer1991 阅读(118) 评论(0) 推荐(0)

java.lang.IllegalArgumentException: Can't convert argument: null
摘要:http://blog.csdn.net/c5153000/article/details/7255233http://tchen8.iteye.com/blog/1041067 阅读全文

posted @ 2013-09-28 22:21 passer1991 阅读(105) 评论(0) 推荐(0)

Uncaught SyntaxError: Unexpected token <
摘要:http://blog.csdn.net/kingviker/article/details/7476403 阅读全文

posted @ 2013-08-10 12:04 passer1991 阅读(164) 评论(0) 推荐(0)

读取web应用中properties配置文件(这种方法可能不是最好的)
摘要:String path= ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath("/WEB-INF/spring/config.properties") ; Properties p=new Properties(); try { p.load(new FileInputStream(path)); System.out.println(p.getProperty("uploadPath")); } catch (Exception e) { e.p 阅读全文

posted @ 2013-08-05 19:56 passer1991 阅读(205) 评论(0) 推荐(0)

java 向jsp页面写数据的时候出现乱码
摘要:response.setContentType("text/plain; charset=utf-8"); PrintWriter pw = response.getWriter(); response.setContentType一定要放在response.getWriter()的前边。 阅读全文

posted @ 2013-06-26 16:16 passer1991 阅读(142) 评论(0) 推荐(0)

在javaEE 中获得web的路径
摘要:ServletActionContext.getServletContext().getRealPath("/upload/index"); 阅读全文

posted @ 2013-06-13 11:55 passer1991 阅读(97) 评论(0) 推荐(0)

xml schema中的命名空间
摘要:http://blog.csdn.net/zjl_wzw/article/details/3041349http://wenku.baidu.com/view/e3e0257c8e9951e79b892798.htmlhttp://blog.sina.com.cn/s/blog_9844e5a8010108f3.html 阅读全文

posted @ 2013-05-29 23:33 passer1991 阅读(159) 评论(0) 推荐(0)

各种数据库对应的jar包、驱动类名和URL格式
摘要:http://www.cnblogs.com/kunpengit/archive/2011/12/13/2285933.html 阅读全文

posted @ 2013-05-13 22:15 passer1991 阅读(103) 评论(0) 推荐(0)

启动Tomcat时遇到的 java.lang.IllegalArgumentException: Can't convert argument: null 异常
摘要:Eclipse中工程重命名后,启动tomcat,出现异常:Sep 8, 2011 1:41:52 PM org.apache.catalina.startup.ContextConfig parseWebXmlSEVERE: Parse error in application web.xml file at jndi:/localhost/gzpetro-portal/WEB-INF/web.xmljava.lang.IllegalArgumentException: Can't convert argument: nullat org.apache.tomcat.util.dige 阅读全文

posted @ 2013-04-05 23:48 passer1991 阅读(396) 评论(0) 推荐(0)

jsp导出word
摘要:<%@ page contentType="application/vnd.ms-word; charset=utf-8"%><%@ page pageEncoding="utf-8"%> <% String fileName = "jsp导出word.doc"; //对中文文件名编码 //fileName = URLEncoder.encode(fileName, "utf-8"); byte[] yte = fileName.getBytes("GB2312") 阅读全文

posted @ 2013-04-01 16:30 passer1991 阅读(425) 评论(0) 推荐(0)

utf8和UTF-8的不同 不同web程序之间的传值
摘要:utf8和UTF-8的不同,像下面这种情况,就要用UTF-8,而mysql中可能有要用到utf8struts2base1 @Action(value="m3",results={@Result(name="method3",type="redirect",location="${url}")}) public String method3() throws IOException { String username="中国"; username=URLEncoder.encode(usernam 阅读全文

posted @ 2013-03-31 00:01 passer1991 阅读(212) 评论(0) 推荐(0)

json 乱码
摘要:如果json传值出现了乱码,多半是因为response没有进行编码设置: response.setContentType("text/html;charset=UTF-8"); response.setCharacterEncoding("UTF-8"); 阅读全文

posted @ 2013-03-30 21:39 passer1991 阅读(171) 评论(0) 推荐(0)

Apache Commons工具集简介[转载]
摘要:http://sunjun041640.blog.163.com/blog/static/2562683220080154293363/ 阅读全文

posted @ 2013-01-16 22:18 passer1991 阅读(93) 评论(0) 推荐(0)

使用Open Flash Chart(OFC)制作图表(Struts2处理)
摘要:http://sarin.iteye.com/blog/685354 阅读全文

posted @ 2012-12-25 17:19 passer1991 阅读(95) 评论(0) 推荐(0)

JSTL EL 详解
摘要:http://www.javawind.net/help/html/jstl_el.htm 阅读全文

posted @ 2012-12-10 10:30 passer1991 阅读(98) 评论(0) 推荐(0)

简历中项目描述怎么写啊
摘要:http://wenda.tianya.cn/question/7ade6dc9324bed88 阅读全文

posted @ 2012-09-12 14:34 passer1991 阅读(320) 评论(0) 推荐(0)

1 2 下一页

导航