交给JSP或者SERVLET来做吧,在BEAN里面不行
解决方案 »
- 我是用webwork开发的,不明白报的错什么意思!找不到原因 麻烦帮我看看!
- 大姐求助:帮我看看这段代码哪里不对了,为什么执行起来占内存过1G,而且特别慢,我只是提几个记录出来。我是在JBOSS下运行的
- 一个页面超链接问题!
- jspSmartUpload.jar
- 有问题啦
- jdk配置的问题 急!!!!!
- 新手请叫,Servlet怎样传list到jsp,且jsp怎样接收并输出?!
- oracle中的Clob型的数据怎么在jsp中读出来?通过javaBean!急!!!
- 关于搜索的问题
- 使用spring向service里面注入dao不成功。求救啊!
- 关于多个应用的问题,多谢!!!!!!!
- 谁知道用java代码对数据库批量更新怎么做?
public void sendRedirect(java.lang.String location)
throws java.io.IOExceptionSends a temporary redirect response to the client using the specified redirect location URL. This method can accept relative URLs; the servlet container must convert the relative URL to an absolute URL before sending the response to the client. If the location is relative without a leading '/' the container interprets it as relative to the current request URI. If the location is relative with a leading '/' the container interprets it as relative to the servlet container root.
If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.Parameters:
location - the redirect location URL
Throws:
java.io.IOException - If an input or output exception occurs
IllegalStateException - If the response was committed
sendRedirect以后,控制权就转移到下一个页面上了,此页面的response就已经失效了----------------------
If the response has already been committed, this method throws an IllegalStateException. After using this method, the response should be considered to be committed and should not be written to.