Topic: unix/sybase环境下 怎样在客户端生成一个jsp页面 |
Print this page |
1.unix/sybase环境下 怎样在客户端生成一个jsp页面 | Copy to clipboard |
Posted by: kevinsky Posted on: 2003-06-26 09:16 在服务器端是unix操作系统sybase数据库的环境下,怎样在客户端生成一个可以向服务器提交数据的jsp页面(jsp的源码在服务器上),可以给个例子给我提示一下吗!先谢谢了! |
2.Re:unix/sybase环境下 怎样在客户端生成一个jsp页面 [Re: kevinsky] | Copy to clipboard |
Posted by: archonLing Posted on: 2003-06-28 21:30 It is standard JDBC connection using Sybase's JConnect 5.x. import java.sql.*; ..... try { Driver sybaseDriver = (Driver)Class.forName("com.sybase.jdbc.SybDriver").newInstance(); DriverManager.registerDriver(sybaseDriver); String conURL = "jdbc:sybase:Tds:[dbserver Name]:[port#]"; Connection con = DriverManager.getConnection(conURL, [user], [pwd]); .... } catch (Exception ex){ } I hope it helps. BTW, it is a better pratice to seperate Presentation from Business Logic (MVC model). So, it is cleaner to handle this in a bean instead of on jsp page. It is just my 2 cents. |
3.Re:unix/sybase环境下 怎样在客户端生成一个jsp页面 [Re: kevinsky] | Copy to clipboard |
Posted by: kevinsky Posted on: 2003-06-30 13:42 Thanks for you help! |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |