JSP知识点总结(5)
来源:未知 责任编辑:责任编辑 发表时间:2014-03-23 22:28 点击:次
request javax.servlet.http.HttpServletRequest request
response javax.servlet.http.HttpServletResponse response
page javax.lang.Object page
Exception java.lang.Throwable page
pageContext javax.servlet.jsp.PageContext page
session javax.servlet.http.HttpSession session
application javax.servlet.ServletContext ServletContext
out javax.servlet.jsp.JspWriter OutputStream
config javax.servlet.ServletConfig ServletConfig
内置对象request(HttpServletRequest)
1)封装了来自客户端的请求:
2)方法:
Parameter related methods:
+getParameterNames():Enumberation 返回form中对象名称的枚举;
+getParameter(String name):String返回指定名称的对象值;
+getParameterValues(String name) :String[ ] 返回指定名称的对象值数组;
+getParameterMap():Map
Attribute related methods:
+setAttribute(String name,Object value) :void 设置属性
+getAttribute(String name) :Oject 返回属性值;
+removeAttribute(String name) :void
+getAttributeNames():Enumberation 返回属性名称
URL related methods:
相关新闻>>
- 发表评论
-
- 最新评论 更多>>