![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jsp2.0/servlet
文章平均质量分 79
RealyOnIT
这个作者很懒,什么都没留下…
展开
-
file io를 이용해서 파일 다운로드 구현하기
第一个页面:(存在“下载”按钮的页面) function doDownload(filePath,disName) { var utl="download.jsp?filePath="+filePath+"&disName="+disName; document.all.opForm.action=url;// document.all.opForm.target="_原创 2008-12-31 12:12:00 · 715 阅读 · 0 评论 -
servlet request 出现乱码!
第一步:request.setCharacterEncoding("UTF-8"); 第二步: urltype = request.getParameter(String); urltype = new String(urltype.getBytes("iso-8859-1"), "UTF-8"); 红色部分可以为 utf-8 或 GBK 都可以原创 2008-12-03 12:49:00 · 1081 阅读 · 0 评论 -
jsp Paging
package com.test.pagemanager;import java.util.ArrayList;import java.util.List;public class PageManager { private static List names; { names = new ArrayList();原创 2008-12-16 10:59:00 · 778 阅读 · 0 评论 -
pager-taglib的安装和使用
第一次写东西,如果写的不好,望大家见谅吧 当然也希望大家给于支持,呵呵 pager-taglib绝对是个好东西,可以方便的帮我们完成分页的功能,当然大家不要担心他的效率,它支持每次从数据库中只取出要显示的数据(呵呵,这点很关键噢),这样可以减少数据库的压力。 好了,该说一下怎么用了: 1、拷贝pager-taglib.jar包 2、在JSP页面中使用taglib转载 2008-12-16 13:16:00 · 1089 阅读 · 1 评论