两个对象都有setAttribute和getAttribute,请问用法一样吗?
解决方案 »
- Sqlserver 2k 连接问题,请大家帮忙啊,急!
- 频繁操作后tomcat 页面没反应
- 急!!!用java怎么样实现浏览器插件的开发,原理,及类的应用,谁能说说,要求的功能是如下
- jsp如何遍历session?
- Tomcat 5下配置Oracle Connection Pool的小问题(在线等待)
- 请大家帮忙看看是什么错误?!!新手!
- JBoss发布CXF生成的WebService的时候报错!Failed to define class org.apache.cxf.wsn.jms.JmsPu
- 改了端口,apache还是不能启动
- 学习JSP,你觉得Dreamweaver Ultra Dev 如何呀?
- 阿里云上部署springboot项目,在本地tomcat上测试正常,在服务器上测试则会抛异常
- 关于验证用户logon的问题。觉得好像是eqauls 方法的问题,郁闷中。。。
- 请教怎么用Servlet作文件上传?最好能有例子,我是新手。
你去看看api吧pageContext是用在jsp中,主要是用到标签类中,PageContext extends JspContext to provide useful context information for when JSP technology is used in a Servlet environment而ServletContext则是servlet中使用,它只是一个接口。Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file。
The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized