WEB
共 7 篇文章
httpurlconnection超时设置
1)使用TimedUrlConnection设置超时 URL url=new URL(someurlname); URLConnection urlconn=url.openConnection(); TimedUrlConnection timeoutconn=new TimedUrlConnection(urlconn,100000);//time out: 100seconds boolean bconnectok=timeoutconn.connect(); if(bconnectok==false) { //urlconn fails to connect in 100second…
2010-03-16 13:48 · WEB
Struts2/JSP/HTML 页面自动跳转的方法
1)在Body中使用JS实现 <script type="text/javascript"> this.location.href="/provision/login/login"; </script> 2)使用JSP的response.sendRedirect <% response.sendRedirect("login/login") %> 3)使用head的属性实现 <META HTTP-EQUIV="Refresh" CONTENT="0;URL=login/login">
2010-03-16 13:41 · WEB
Enabling JSP support in Jetty 7
Enabling JSP support in Jetty 7 As Jetty 6 failed to use the port inherited from xinetd, I have to use Jetty 7. Unfortunately Jetty is missing the JSP support by default. Here is how to enable it: Download the Jetty 6 distribution. Copy the jsp-2.1 folder to the Jetty 7 lib/ folder. You can check i…
2010-03-06 11:34 · WEB
Struts2系列博客索引
Struts2 http://blog.csdn.net/struts2/archive/2007/08/01/1721752.aspx
2010-02-03 10:09 · WEB