摘要: JSP被编译成Serverlet[java]view plaincopy/**GeneratedbytheJaspercomponentofApacheTomcat*Version:ApacheTomcat/7.0.42*Generatedat:2013-09-0312:56:20UTC*Note:Thelastmodifiedtimeofthisfilewassetto*thelastmodifiedtimeofthesourcefileafter*generationtoassistwithmodificationtracking.*/packageorg.apache.jsp.jsp;将 阅读全文
posted @ 2013-09-12 10:51 将夜 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 标准Servlet[java]view plaincopypackagecom.myHelloWorld;importjava.io.IOException;importjava.io.PrintWriter;importjavax.servlet.ServletException;importjavax.servlet.http.HttpServlet;importjavax.servlet.http.HttpServletRequest;importjavax.servlet.http.HttpServletResponse;publicclassHelloWorldextendsHttp 阅读全文
posted @ 2013-09-12 10:49 将夜 阅读(242) 评论(0) 推荐(0) 编辑
摘要: java和js中遍历数组和对象的总结在这儿写遍历数组和对象,权当复习和总结1.java中数组的三种初始化方法①静态初始化[java] view plaincopy1.int[] arr = {1,2,3}; 2.Man[] mans = {new man("张三",20),new man("李四",11)}; 也可以这样写[java] view plaincopy1.int[] arr; 2.arr = new int[]{1,2,3};//不要忘了右边的[] 但不能这样写,会报错[java] view plaincopy1.int[] arr; 将夜2 阅读全文
posted @ 2013-09-12 10:48 将夜 阅读(774) 评论(0) 推荐(0) 编辑