易截截图软件、单文件、免安装、纯绿色、仅160KB

jsp 简单分页

//总记录数
                int count = personDao.getCount();
                //每页显示5条
                int pageSize = 5;
                //当前页
                int currentPage = 1;
                int pageCount = (count + pageSize - 1) / pageSize;
                String _currentPgae = request.getParameter("currentPage");
                if (_currentPgae != null) {
                    currentPage = Integer.parseInt(_currentPgae);
                }
                if (currentPage < 1) {
                    currentPage = 1;
                }
                if (currentPage > pageCount)
                    currentPage = pageCount;
                List list = personDao.getPageList((currentPage - 1) * pageSize,
                        pageSize);
                Iterator it = list.iterator();
 &


相关文档:

jsp 验证

长度限制JavaScript代码
CODE:
<script> function test() { if(document.a.b.value.length>50) { alert("不能超过50个字符!"); document.a.b.focus(); return
false; } } </script> <form. name=a nsubmit="return test()"> <textarea name="b" cols="40" wrap="VIRTUAL" rows="6"></te ......

JSP(HTML)中((br/))的应用

今天在如下代码中:
********************************************************
<p><font color="blue">操作步骤:1、选择输出可选项 2、查询 3、输出
             <br>
 
************************************************** ......

jsp访问MySQL数据库错误

不知道是不是驱动加载有问题,在MyEclipse中写了简单的数据库测试程序找不到驱动类,希望大虾能给予帮助,谢了。
严重: Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.aspectj.lang.Signature
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClas ......

jsp文件开头path, basePath作用

在JSP中的如果使用 "相对路径"  则有可能会出现问题. 
因为 网页中的 "相对路径" , 他是相对于 "URL请求的地址" 去寻找资源. 
上面这句话是什么意思呢 ? 
举个例子: 
假如我们有一个项目: MyApp 
在该项目下, 有一个jsp文件夹 
该文件夹下包括: 
login.jsp    // ......

resin服务器中通过SSI包含JSP页面

1、一、先提条件: 在web.xml中加以下语句(原因参考RESIN官方文档)    
<servlet>
         <servlet-name>SSIServlet</servlet-name>
        <servlet-class>com.caucho.servlets.ssi.SS ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号