我是在jdk1.5,tomcat5.59提供的servlet包下编译的
解决方案 »
- java web 首页加载老是出错啊!!!!刷新一下就没事了 这是为什么
- can't clear response after writing headers
- 帮忙看看红色部分是做什么用
- 具有丰富经验的高手进来看看,看看优酷网这个评论分页是用什么技术实现的
- sql server 2000乱码问题
- 我在http://www.mycodes.net/soft/1566.htm下载到《NTsky留言本v1.2》代码,我看了3天了,还没找到数据库连接池名字是在哪里设置的。请各
- 怎样才能让http://localhost:8080/MyWeb/index.jsp不再出现:8080就可以访问了
- 如何写一个JSP,延时一段时间返回?
- 高分赠送,求解一题
- applicationContext.xml中的这些都是什么东西?
- 新开 ++ Sql Server 数据库高级编程技术者交流群 ++ ,欢迎大家的加入共同讨论```````````
- 数据连接中刷新的问题
public String encodeUrl(String url)
Deprecated. As of version 2.1, use encodeURL(String url) instead Parameters:
url - the url to be encoded.
Returns:
the encoded URL if encoding is needed; the unchanged URL otherwise.
setStatus
public void setStatus(int sc,
String sm)
Deprecated. As of version 2.1, due to ambiguous meaning of the message parameter. To set a status code use setStatus(int), to send an error with a description use sendError(int, String). Sets the status code and message for this response. Parameters:
sc - the status code
sm - the status message
可是我的程序里并没有用到它们。
setStatus(int sc, java.lang.String sm)
The default behavior of this method is to call setStatus(int sc, String sm) on the wrapped response object.
这是HttpServletResponseWrapper 里的setStatus()也并没有说明过期。