随笔分类 -  JAVA

摘要:Choose Accessing a Scoped Value Hello Esteemed Visitor input_jstl User Info Entry Form Name: ... 阅读全文
posted @ 2009-01-16 16:06 昕友软件开发 阅读(869) 评论(1) 推荐(0)
摘要:设置过期 30 编码方式 HttpSession session = request.getSession( ); session.setMaxInactiveInterval(20 * 60);//20分钟后过期 跟踪 View Session JSP Session Info From A JSP The sess... 阅读全文
posted @ 2009-01-16 16:02 昕友软件开发 阅读(194) 评论(0) 推荐(0)
摘要:Problem You want to use a JSP to set & read a cookie on a client. Solution Wrap a JavaBean around the servlet API for creating cookies. Then use the bean in the JSP with the jsp:useBean standard actio... 阅读全文
posted @ 2009-01-16 15:59 昕友软件开发 阅读(438) 评论(0) 推荐(0)
摘要:Problem POST request. Solution Use the ServletRequest.getParameter(String name), getParameterMap( ), getParameterNames( ), or getParameterValues(String name) methods in the servlet's doPost method Cod... 阅读全文
posted @ 2009-01-16 14:38 昕友软件开发 阅读(1021) 评论(0) 推荐(0)
摘要:1、 Handles a Request Problem 动态在请求时包含一个存在的servlet. Solution Use the javax.servlet.RequestDispatcher.include(request,response)method in the doGet( ) method of the servlet Code: import java... 阅读全文
posted @ 2009-01-16 14:35 昕友软件开发 阅读(422) 评论(0) 推荐(0)
摘要:u Ant 的下载 Ant 是一个开源、免费的软件,可以从以下地址下载最新版本: http://ant.apache.org/ u Ant 的安装和配置 Ant 的安装程序是一个压缩文件,例如最新版本的 Ant 1.6.5 安装程序文件名称为—— apache-ant-1.6.5-bin.zip 。 1. ... 阅读全文
posted @ 2009-01-15 17:57 昕友软件开发 阅读(2017) 评论(0) 推荐(0)
摘要:import java.io.*; public class IOTest { public static void main(String[] args){ IOTest io = new IOTest(); try{ long startTime = System.currentTimeMillis(); ... 阅读全文
posted @ 2008-11-20 17:25 昕友软件开发 阅读(219) 评论(0) 推荐(0)
摘要:// $Id: wc.java,v 1.2 2001/05/31 22:56:19 doug Exp $ // http://www.bagley.org/~doug/shootout/ // with help from Dirus@programmer.net import java.io.*; import java.util.*; import java.text.*; // this... 阅读全文
posted @ 2008-11-20 14:45 昕友软件开发 阅读(350) 评论(0) 推荐(0)

欢迎访问我的开源项目:xyIM企业即时通讯