摘要: 内置组件JSP共有以下9种基本内置组件(可与ASP的6种内部组件相对应):1.request对象客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应。它是HttpServletRequest类的实例。序号 方 法 说 明1 object getAttribute(String name) 返回指定属性的属性值2 Enumeration getAttributeNames() 返回所有可用属性名的枚举3 String getCharacterEncoding() 返回字符编码方式4 int getContentLength() 返回请求体的长度(以字节数)5 S 阅读全文
posted @ 2013-04-24 21:45 欣欣家园 阅读(235) 评论(1) 推荐(2) 编辑
摘要: 在java中数组的定义有四种方法:方法一:package com.test;public class Test1 { public static void main(String[] args){ int[] a; a=new int[2]; a[1]=10; a[0]=20; //在这里如果没有对数组赋值,系统将会自动对其进行赋初值0 //a[2]=30; 数组的大小为2,在这里发生了越界 System.out.println(a[1]); System.out.println(a[... 阅读全文
posted @ 2013-04-24 21:29 欣欣家园 阅读(558) 评论(3) 推荐(1) 编辑