当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 脚本说明:第一步:把如下代码
 

 

 ·jsp生成jpeg图片用于投票    »显示摘要«
    摘要:一、前言    本文原作者为tony wang ,该文章涉及到文件的读写和jpg图片的自动生成。利用jsp+servlet的技术,jsp调用servlet生成图片。 二:写文件write.jsp 三、servlet原代码: voteimage.java : /* author: tony wang e-mail: lucky_tony@163.net date: 2001-01-0......
 ·jsp记事本程序    »显示摘要«
    摘要: package guestbook;import java.sql.*;public class guestbook{  string sdbdriver = "sun.jdbc.odbc.jdbcodbcdriver";  string sconnstr = "jdbc:odbc:guestbook";  connection conn = null;  resultset r......


双人小游戏

脚本说明:

<script> 【程序编程相关:一个区分Bean的作用域的例子,即<

第一步:把如下代码加入<head>区域中 【推荐阅读:关于认证的一些介绍

document.all.idfinder.style.display = (bmenu) ? "none" : "block" 【扩展信息:JSP语法(13)——<jsp:u

function showmenu(bmenu) {

document.all.idmenu.style.display = (bmenu) ? "block" : "none"

idml.classname = (bmenu) ? "con" : "coff"

idrl.classname = (bmenu) ? "coff" : "con"

return false

}

</script>

<style>

<!--

a.con {text-decoration:none;font-weight:bolder}

#article {font: 12pt verdana, geneva, arial, sans-serif; background: white; color: black; padding: 10pt 15pt 0 5pt}

#article p.start {text-indent: 0pt}

#article p {margin-top:0pt;font-size:10pt;text-indent:12pt}

#article #author {margin-bottom:5pt;text-indent:0pt;font-style: italic}

#pagelist p {padding-top:10pt}

#article h3 {font-weight:bold}

#article dl, ul, ol {font-size: 10pt}

-->

</style>

<script>

<!--

function addlist(url,desc) {

if ((navigator.appname=="netscape") || (parseint(navigator.appversion)>=4)) {

var w=window.open("","_idhtml_list_","top=0,left=0,width=475,height=150,history=no,menubar=no,status=no,resizable=no")

var d=w.document

if (!w._init) {

d.open()

d.write("<title>loading...</title><em>loading...</em>")

d.close()

d.location.replace("/assist/listing.asp?url="+escape(url)+"&desc="+escape(desc))

w.opener=self

window.status="personal assistant (adding): " + desc

} else {

window.status=w.addoption(url,desc)

w.focus()

}

}

else

alert("your browser does not support the personal assistant.")

return false

}

// -->

</scri
...   下一页
 ·jsp: 调用servlet 显示图片    »显示摘要«
    摘要:   由于我工作需要,开始学习 java 和 jsp, 这段时间会多写点关于 jsp 的文章,以加强自己对jsp的了解。  这篇文章主要是介绍如何调用 servlet 显示图片,其实也让大家知道如何在向客户端输出二进制数据。下在这个 1.htm 用来调用servlet <!------------ 文件 1.htm 开始--------------------><html><head......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE