摘要:
在jsp中连接到oracle一般有2种方式: 1、oracle jdbc的oci8方式 2、oracle jdbc的thin方式 我比较喜欢第2种,因为web发布服务器与数据库服务器一般都不会放在同一台电脑中,而在使用thin方式连接时,web服务器端无须安装oracle的客户端。 在动手先代码之前,我们先把环境配置妥善。先从安装了oracle的数据库服务器中,找到oracle安装......
摘要:每一位读过gof的那本著名的设计模式一书的人都会知道decorator模式。现在,让我们暂时忘记所了解的decorator概念,尝试着从我们的开发经验中去理解decorator模式吧。
decorator是用于装饰一个事物(或人)的另一个事物(或人)。一个decorator直接改变被装饰对象的职责或特征,但是不能改变被装饰对象的自有属性。例如:一个镜框可以装饰图片,化妆品可以装饰女孩的脸等等。......
Java创建ZIP压缩文件
// these are the files to include in the zip file
【程序编程相关:
用JSP创建WAP应用】
string[] filenames = new string[]{"filename1", "filename2"}; 【推荐阅读:
简易成绩查询系统】
byte[] buf = new byte[1024]; 【扩展信息:
关于Servlet、Jsp中的多国语言显】
// create a buffer for reading the files
try {
// create the zip file
string outfilename = "outfile.zip";
zipoutputstream out = new zipoutputstream(new fileoutputstream(outfilename));
// compress the files
for (int i=0; i<filenames.length; i++) {
fileinputstream in = new fileinputstream(filenames[i]);
...
下一页 摘要: 你希望在jsp中建立一个邮件发送收取工具吗?下面将介绍的就是在jsp中建立一个邮件发送收取工具。在这篇文章中你可以了解到javamail api的一些要点以及如何在jsp中使用它。本文中还包括了在jsp中使用javamail的实例。javamail是jsp应用软件中相当强大的api。 阅读这篇文章需要对jsp、javabeans和javamail有一定的初步了解。当然,有关于javamai......