ChinaUnix.net
相关文章推荐:

在配置文件中设置访问权限jsp

如果你已经安装了tomcat,jdk和mysql,那么要让你的程序访问数据库,你还需要安装jdbc驱动程序,你可以去www.mysql.org下载connector/j. jdbc连接数据库有两种方法,一是直接加载jdbc驱动,二是通过j2ee容器提供一个抽象,并用jndi得到一个datasource对象. 一般建议采用第二种方法,如果你用的是tomcat,只需要你把jdbc的驱动程序的jar文件放在tomcat/common/lib/下就可完成部属;如果你采用第一方法的话,你就需要把connecto...

by Chen@Heng - MySQL文档中心 - 2007-03-31 22:46:43 阅读(835) 回复(0)

相关讨论

执行的语句是: fsize=RS.getFloat("filesize"); dnumber=RS.getInt("downloadnum"); 我只是从数据库取数据,在其它的文件执行类似的语句没有问题呀????? 出现错误: Error: 500 Location: /examples/download_form.jsp Internal Servlet Error: javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]???????? at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.jav...

by 北美刀客 - Java - 2004-01-16 12:20:23 阅读(1509) 回复(8)

jsp访问远程数据库,因数据库数据量大,返回需要很长时间,请问怎眼设置延迟时间?越长越好。谢谢!

by lxr01 - Java - 2008-05-24 17:54:45 阅读(4878) 回复(1)

我的网站只连接了一个sql数据库,现在需要再连接同一台数据库服务器上第二个数 据库,请问如何更改我的配置文件?? 原有数据库叫zhwh,现在想添加一个zhwh2的数据库,ip地址,登录方式都不变。如 何实现? 还请大虾们指教. 下面是我的tomcat配置文件路径 \conf\Catalina\localhost\zhwh.xml 配置文件具体内容: ;

by gilliatt - Oracle - 2005-05-25 09:37:00 阅读(1014) 回复(0)

当前网站只连接了一个sql数据库,现在需要再连接同一台数据库服务器上第二个数据库,请问如何更改我的配置文件?? 原有数据库叫zhwh,现在想添加一个zhwh2的数据库,ip地址,登录方式都不变。如何实现? 还请大虾们指教. 下面是我的tomcat配置文件路径 \conf\Catalina\localhost\zhwh.xml 配置文件具体内容: ;

by gilliatt - MySQL - 2005-05-27 10:17:38 阅读(971) 回复(1)

问题: tomcat如何把http://localhost:8080//index.jsp设置为http://localhost//index.jsp 请各位大侠帮忙!! 在线等待

by hereor - Java - 2006-04-19 17:31:08 阅读(5380) 回复(9)

如何关闭apache特定虚拟机的php、jsp执行权限

by npcomet - 服务器应用 - 2007-04-25 23:36:24 阅读(2495) 回复(5)

1,Tomcat 5.0.25,服务器启动正常 2,在webapps目录下建立myapp,以及myapp\WEB-INF和myapp\WEB-INF\classes 3,jsp程序index.jsp建至myapp。程序为: ;;

; Now time is: <%=new java.util.Date()%>;
;;; 4,修改conf\server.xml,在;前加入 ; ; 存盘,重启服务器,键入http://localhost:8080...

by yi527 - Java - 2004-08-07 00:00:00 阅读(1079) 回复(0)

连接字符串如此: String url ="jdbc:mysql://localhost//xxxx?user=abc&password=abc&useUnicode=true&characterEncoding=8859_1 用localhost则报错,服务器配置拒绝访问设置成ip地址就正常访问,该怎样解决,谢谢

by iotigod - MySQL - 2004-10-28 12:27:30 阅读(1069) 回复(2)

折腾了一天 还是没弄出来 请哪位高手有空帮小弟看一看 先谢谢了 <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %> <%@ page import="com.mysql.jdbc.Driver" %> 卧... </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-8404623.html" target="_blank">gnahz </a> - <a href="http://bbs.chinaunix.net/forum-26-1.html" target="_blank">Java</a> - 2006-02-21 02:16:47 阅读(1294) 回复(3) </div> <div class="two_con1"> <div class="tit5"> <h2><a href="http://bbs.chinaunix.net/thread-688692-1-1.html" target="_blank"> <font color="red">jsp</font><font color="red">访问</font>MYSQL的疑问 </a></h2> </div> <p> FreeBSD下<font color="red">jsp</font><font color="red">访问</font>MYSQL是用什么驱动程序啊?ports下有吗?如何安装和配置啊? 有经验的来介绍一下吧! </p> <p class="news_tag"> </p> </div> <div class="two_con2"> by <a href="http://bbs.chinaunix.net/space-uid-20123235.html" target="_blank">kanhu </a> - <a href="http://bbs.chinaunix.net/forum-17-1.html" target="_blank">MySQL</a> - 2006-01-19 15:12:21 阅读(1511) 回复(3) </div> </div> <div class="friendly_link"> <div class="friendly_con1"> <div class="f_link_tit">盛拓传媒:</div> <p><a href="http://www.it168.com">IT168</a> | <a href="http://www.pcpop.com">泡泡网</a> | <a href="http://www.autohome.com.cn">汽车之家</a> | <a href="http://www.che168.com">二手车之家</a> | <a href="http://www.qudao168.com">渠道168</a> | <a href="http://www.itpub.net/">ITPUB</a> | <a href="http://www.ixpub.net/">IXPUB</a> | <a href="http://www.chinaunix.net/">ChinaUnix</a> | <a href=" http://www.jimi168.com/">安卓之家</a> | <a href="http://www.app111.com/">苹果园</a> | <a href="http://www.gqt168.com/">家商城</a> | <a href="http://bbs.app111.com/">苹果论坛</a></p> <div class="clear"></div> </div> </div> <div id="footer"> <div class="dot1"><a href="http://www.bj.cyberpolice.cn/index.jsp" class="n1"></a><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202008062400006"></a><a href="http://ulic.baidu.com/client/clientDetailCerInfo.do?id=1602"></a></div> <p class="p"> <a href="http://www.it168.com/bottomfile/about.shtml" rel="nofollow">盛拓传媒简介</a> | <a href="http://www.it168.com/bottomfile/it168.shtml" rel="nofollow">关于IT168</a> | <a href="http://www.it168.com/bottomfile/hzhb.shtml" rel="nofollow">合作伙伴</a> | <a href="http://www.it168.com/bottomfile/ggfw.shtml" rel="nofollow">广告服务</a> | <a href="http://www.it168.com/bottomfile/sytk.shtml" rel="nofollow">使用条款</a> | <a href="http://www.it168.com/bottomfile/tgzn.shtml" rel="nofollow">投稿指南</a> | <a href="http://www.wintalent.cn:8031/wt5/sequelmedia/web/index" rel="nofollow">诚聘精英</a> | <a href="http://www.it168.com/bottomfile/lxwm.shtml" rel="nofollow">联系我们</a> | <a href="http://www.itpub.net/forum.php">ITPUB论坛</a> | <a href="http://www.it168.com/bottomfile/sitemap/sitemap.html" rel="nofollow">网站导航</a> | <a href="http://archive.it168.com/" rel="nofollow">往日回顾</a> </p> <address> 北京皓辰网域网络信息技术有限公司. 版权所有 <a href="http://www.it168.com/images/icp.jpg"><font color="#666666">京ICP证:060528号</font></a> 北京市公安局海淀分局网监中心备案编号:1101082001<br> <font color="#666666">广播电视节目制作经营许可证:编号(京)字第1149号</font> </address> <div style=" color:#666;margin-top:10px; text-align:right;">ITPUB推荐文章解答你所有技术难题</div> <div class="clear"> </div> </div> </div> <!-- 统计 START --> <script language="javascript" src="http://stat.it168.com/pv.js"></script> <script> function sendPV(){ var pvTrack = new PvTrack(); pvTrack.type = 35; // 频道类别ID pvTrack.channel = 461; // 频道ID pvTrack.pageType = 0; pvTrack.track(); } window.setTimeout("sendPV()", 1000); </script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-20237423-2']); _gaq.push(['_setDomainName', '.chinaunix.net']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <div style='display:none'> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F0ee5e8cdc4d43389b3d1bfd76e83216b' type='text/javascript'%3E%3C/script%3E")); </script></div> <!-- END STAT PV --> <!-- <script type='text/javascript' src='http://168.it168.com/js/597.js'></script> --> <script>if(typeof(BLA)!='undefined'){BLA();}</script> </body> </html>