jsp
文章平均质量分 73
gaofeirong
-
展开
-
JSP转向另一地址
JSP转向另一地址,1. response.sendRedirect(); 2 两区别:1.此语句前不允许有out.flush(),如果有,会有异常: java.lang.IllegalStateException: Cant sendRedirect() after data has committed to the client. at com.caucho.server转载 2008-07-03 11:21:00 · 1479 阅读 · 0 评论 -
解决JSP页面乱码,理解pageEncoding、contentType属性设置
在Jsp页面中合理的设置pageEncoding、contentType属性,能够解决日常遇见的页面乱码问题,下面就pageEncoding和contentType两种属性的分别,进行简单阐述一下: 1、pageEncoding是JSP文件默认的编码属性。 2、contentType中charset是指远程服务器端发送给本地客户端时的内容编码格式。 在页面传输过程中Jsp要经过转载 2008-10-23 14:19:00 · 2786 阅读 · 0 评论