`
wcb820710
  • 浏览: 23444 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论
文章列表
一、安装JDBC Driver   将数据库的驱动jar文件放至{Tomcat_install}\common\lib目录下 二、配置Connection Pool     1.配置全局的连接池,Tomcat里的任何Web应用都能使用该配置的连接池。       在Tomcat的server.xml文件中的GlobalNamingResources结点下面添加,连接池设置       <Resource        name="jdbc/MSSQLDS"        auth="Container"        type="j ...
<meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> JSP中的pageEncoding和contentType属性: (pageEncoding 和contentType的预设都是 ISO8859-1)    1、 ...
***只做分页查询用*** /** *  procedure name : prcPageResult *  author : michael *  create date : 2009-02-17 */ create procedure procPageResult ---获得某一页的数据--- @currPage int = 1,   --->当前页页码(即top currPage) @showColumn varchar(2000) = '*', --->需要查询的字段(即column1,column2,......) @tabName varchar(2000),   ...
java使用jtds连接sqlserver2000问题 一般以下几个问题: 1、WINDOWS防火墙屏蔽了1433端口 2、检查sqlserver2000是否使用的是1433端口 3、检查sqlserver2000是否升级到SP4版本(基本都是这个问题) 属性文件DataBase.properties jdbc.driver=net.sourceforge.jtds.jdbc.Driver jdbc.url=jdbc:jtds:sqlserver://localhost:1433;DatabaseName=pubs jdbc.user=sa jdbc.password=sa package ...
首先声明一下,此文章是从网上转载的。但是没有考虑使用不同Web Server时出现的情况,比如文章里的用 红色字体画出来的部分代码在用Tomcat时用文章中的方法,不过到了WebSphere的时候必须用原先的String name = request.getParameter(" ...
数据显示页面 <table>   <logic:iterate id="show" name="product" type="com.michael.pojo.Product">   //id是迭代时的临时变量名称   //name代表了需要迭代的集合(必须类型)来自session或者request的属性,即action传过来formbean名称   //name+property该formbean指定的属性property必须是一个集合类型   //type是实体的路径  <tr>     // ...
你时常被客户抱怨JSP页面响应速度很慢吗?你想过当客户访问次数剧增时,你的WEB应用能承受日益增加的访问量吗?本文讲述了调整JSP和Servlet的一些非常使用的方法,它可以使你的Servlet和JSP页面响应更快,扩展性更强。而且在 ...
$.ajax({    async:true,  //默认:true(异步请求)    cache:true,  //默认:true,设置为false将不会从浏览器缓存中加载请求信息    type:"POST", //默认:GET,请求方式        dataType:"xml", //服务器返回的数据类型["xml","html","script","json","jsonp"]     url:"url",  //(默认: ...
1、Content-Type    很多时候无法解析就是Content-Type的问题。如果本身就是XML文件,请跳过这一步。    动态生成的XML一定要将其设置为text/xml,否则默认就是text/html也就是普通的文本。   常见语言的Content-Type设置:    response.setHeader("ContentType","text/xml");  //jsp    response.ContentType= "text/xml"; //asp    header("Content-Type:t ...
Global site tag (gtag.js) - Google Analytics