⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jsp入门教程(2).html

📁 关于JSP编写的入门资料。包括·JDBC连接SQLServer20.、·JSP入门教程(1)、·jsp连接sql server调.、·JSP学习笔记(二)----.、·JSP + JavaScript
💻 HTML
📖 第 1 页 / 共 2 页
字号:
            | <a href="Info-85-Time-DESC-1.html">Flash</a> 
            | <a href="Info-86-Time-DESC-1.html">Fireworks</a> 
            | <a href="Info-101-Time-DESC-1.html">Photoshop</a></div>

<!-- 搜索部分 -->
<div id="middle_2">
<form name=myform action="../ArSearch.php" method="post">
<div id="search1">
<strong>站内搜索</strong>: <input type="text" size="14" maxlength="20" name="Keyword" />
<input src="../images/search.gif" type="image" value="submit" align="absmiddle" border="0"> &nbsp;&nbsp;&nbsp;&nbsp;<iframe marginheight=0 marginwidth=0 frameborder=0 width=350 height=22 scrolling=NO src="../Js/Welan.Search.html"></iframe></div></form></div>
<div id="main"><a href="index.html">站点首页</a> → <a href="Info-ALL-Time-DESC-1.html">破釜学院</a> → <a href="Info-2-Time-DESC-1.html">编程开发</a> → <a href="Info-8-Time-DESC-1.html">Java</a> → <a href="Info-94-Time-DESC-1.html">JSP</a> → JSP入门教程(2)</div>
<script language="JavaScript">
function doZoom(size,line){
content.style.fontSize=size+'px';
content.style.lineHeight=line+'pt';
}
</script>
<!-- 列表部分 -->
<div id="middle_1">
<div id="list_art_right">
<div class="nav_left"><h6>¤ 推荐列表</h6></div>
<div class="text">
<script type="text/javascript" language="javascript" src="../Js/Sponsor/CommendList.Js"></script>
</div>

 <!-- SiteSearch Google -->
<div class="nav_left"><h2>¤ Google搜索</h2></div>
<div id="right_serch"><form method="get" action="http://www.google.com/custom" target="google_window">
  <input type="hidden" name="domains" value="www.7880.com" />
  <input type="text" name="q" size="16" maxlength="255" value="" />
  <input type="submit" name="sa" value="搜索" />
  <input type="radio" name="sitesearch" value="" checked="checked" />Web
  <input type="radio" name="sitesearch" value="www.7880.com" />站内搜索
  <input type="hidden" name="client" value="pub-2550567863210895" />
  <input type="hidden" name="forid" value="1" />
  <input type="hidden" name="channel" value="5668902811" />
  <input type="hidden" name="ie" value="GB2312" />
  <input type="hidden" name="oe" value="GB2312" />
  <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:170;L:http://www.7880.com/Template/Default/Images/logo.gif;S:http://www.7880.com;FORID:1;" />
  <input type="hidden" name="hl" value="zh-CN" /></form></div>
<div class="nav_left"><h6>¤ 热点资讯</h6></div>
<div class="read_top">
<ul>
<li>·<a href="Article-1247dee0.html" title="JDBC连接SQLServer2000">JDBC连接SQLServer20.</a></li><li>·<a href="Article-2ff8460.html" title="JSP入门教程(1)">JSP入门教程(1)</a></li><li>·<a href="Article-127111c0.html" title="jsp连接sql server调用数据源方法">jsp连接sql server调.</a></li><li>·<a href="Article-4610b4e0.html" title="JSP学习笔记(二)-----使用Tomcat运行JSP文件">JSP学习笔记(二)----.</a></li><li>·<a href="Article-46248b00.html" title="JSP + JavaScript 实现类似 MSDN CSDN 导航树效果!">JSP + JavaScript 实.</a></li><li>·<a href="Article-35032ac0.html" title="jspSmartUpload上传下载全攻略">jspSmartUpload上传下.</a></li><li>·<a href="Article-3ba26b20.html" title="JSP连接SQL Server 2000系统配置">JSP连接SQL Server 2.</a></li><li>·<a href="Article-4613c220.html" title="JSP学习笔记(三)-----使用JSP处理用户注册和登陆">JSP学习笔记(三)----.</a></li><li>·<a href="Article-461b6340.html" title="JSP学习笔记(九)-----JSP标签库">JSP学习笔记(九)----.</a></li><li>·<a href="Article-4616cf60.html" title="JSP学习笔记(六)-----在多个JSP页面之间传递参数">JSP学习笔记(六)----.</a></li><li>·<a href="Article-462611a0.html" title="Struts下JSP页面传递复选框值技巧">Struts下JSP页面传递.</a></li><li>·<a href="Article-3b518c0.html" title="Struts学习傻瓜式入门篇">Struts学习傻瓜式入门.</a></li><li>·<a href="Article-308ac20.html" title="JAVA/JSP学习系列之二(Tomcat安装)">JAVA/JSP学习系列之二.</a></li><li>·<a href="Article-30291a0.html" title="JSP入门教程(3)">JSP入门教程(3)</a></li><li>·<a href="Article-3041840.html" title="JSP入门教程(4)">JSP入门教程(4)</a></li><li>·<a href="Article-36bdac0.html" title="JSP学习心得">JSP学习心得</a></li><li>·<a href="Article-460f2e40.html" title="JSP学习笔记(一)-----概述">JSP学习笔记(一)----.</a></li><li>·<a href="Article-3010b00.html" title="JSP入门教程(2)">JSP入门教程(2)</a></li><li>·<a href="Article-461548c0.html" title="JSP学习笔记(五)-----JSP中使用JavaBean">JSP学习笔记(五)----.</a></li><li>·<a href="Article-325aa00.html" title="jsp基础学习资料">jsp基础学习资料</a></li></ul>
</div></div>
<div id="list_art_left">
<div id="art_title">JSP入门教程(2)</div>
<div class="d2"><span class="d2_r">【<a href="javascript:doZoom(16,19)">大</a> 
<a href="javascript:doZoom(14,17)">中</a> <a href="javascript:doZoom(12,15)">小</a>】【<a href="../Print.php?PID=6021600">打印</a>】【<a href="../Favorite.php?Go=Info::3010b00">加入收藏</a>】【<a href="javascript:window.close()">关闭</a>】</span>
【<a title=收藏的网页将被永久地保存到新浪ViVi收藏夹http://vivi.sina.com.cn href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=2008&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();">收藏到新浪ViVi</A>】【<a title=功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐 href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();">收藏到365KEY</a>】 浏览字号:</div>
<div class="d3">日期:2004-06-01 人气:<script language="javascript" src="../Read.php?ID=3010b00"></script> 出处:  <br />
<iframe marginheight=0 marginwidth=0 frameborder=0 width=468 height=60 scrolling=NO src="../Js/Google.html"></iframe></div>
<div id="content"><SPAN class=unnamed3>欢迎使用JavaServer Pages(以下简称JSP)技术—制作动态内容网页的方法。 <BR><BR>如果你希望学习这篇教程的话,我想你一定是这项技术的新手。你可能想成为一名利用JSP技术开发网络应用程序的程序员或者网页设计师。本教程中包含了一系列JSP的技巧和一些简单的代码的写法,每一步都举了一组例子来讲述原理。 <BR><BR>我建议你在学习本教程之前先去看一看FAQ,了解如果配置你的服务器好让他能支持并运行JSP。那样你就可以跳过前边的内容直接看你感兴趣的内容了。 <BR><BR>OK,费话少说,Let’s go! <BR><BR>第一课:真正的开始 <BR><BR>现在开始做我们的第一个JSP页面。图1-1展示了一个最简单的JSP页面,接下来是两段代码。 <BR><BR><BR><BR>[dukebanner.html] <BR><BR>&lt;table border=”0” width=”400” cellspacing=”0” cellpadding=”0”&gt; <BR><BR>&lt;tr&gt; <BR><BR>&lt;td height=”150” width=”150”&gt; &amp;nbsp; &lt;/td&gt; <BR><BR>&lt;td width=”250”&gt; &amp;nbsp; &lt;/td&gt; <BR><BR>&lt;/tr&gt; <BR><BR>&lt;tr&gt; <BR><BR>&lt;td width=”150”&gt; &amp;nbsp; &lt;/td&gt; <BR><BR>&lt;td align=”right” width=”250”&gt; <BR>&lt;img src=”duke.waving.gif”&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br&gt; <BR><BR><BR><BR>helloworld.jsp <BR><BR>&lt;%@ page info="a hello world example" %&gt; <BR><BR>&lt;html&gt; <BR><BR>&lt;head&gt;&lt;title&gt;Hello, World&lt;/title&gt;&lt;/head&gt; <BR><BR>&lt;body bgcolor="#ffffff" background="background.gif"&gt; <BR><BR>&lt;%@ include file="dukebanner.html" %&gt; <BR><BR>&lt;table&gt; <BR><BR>&lt;tr&gt; <BR><BR>&lt;td width=150&gt; &amp;nbsp; &lt;/td&gt; <BR><BR>&lt;td width=250 align=right&gt; &lt;h1&gt;Hello, World!&lt;/h1&gt; &lt;/td&gt; <BR><BR>&lt;/tr&gt; <BR><BR>&lt;/table&gt; <BR><BR>&lt;/body&gt; <BR><BR>&lt;/html&gt; <BR><BR>页面说明: <BR><BR>在很多JSP文件中你都要写上这样的说明。在helloword.jsp中: <BR><BR>&lt;%@ page info="a hello world example" %&gt; <BR><BR>傻瓜也看得出来,这句话没什么大用,只是简要的说明一下这段代码的作用。 <BR><BR>你可以在JSP文件中的任何地方写这种代码,但是好的习惯是把他写在最前面,还有,因为他是JSP标签,记住一定要放在&lt;html&gt;前面,呵 <BR><BR>include说明: <BR><BR>include用来在主JSP文件中调用本地的一个其他文件,通常是一些版权信息啦,脚本语言啦等其他任何你想在其他文件中重复使用的代码。在这个例子中就是调用了一个图片其实。大家明白这个意思就得了。 <BR><BR>随便说两句: <BR><BR>在JSP中对写法非常敏感,不可以有一点错误。举个例子,把&lt;jsp:useBean&gt;写成&lt;jsp:usebean&gt;那样服务器会出现错误信息。一些如类名,包名,路径名还有其他的敏感的标签等千万不要写错。有一些JSP标签拿不准的话就去查一下JavaServer Pages语法卡片。 <BR><BR>代码写好了,如何试验一下呢? <BR><BR>我这里写的UNIX下的方法,如果你用Windows,那么换一下路径就可以了 <BR><BR>1、 先建一个目录:../jswdk-1.0/examples/jsp/tutorial/helloworld <BR><BR>2、 把这些文件拷过去background.gif, duke.waving.gif, dukebanner.html, and helloworld.jsp <BR><BR>3、 cd ../jswdk-1.0,然后startserver <BR><BR>4、 开一个浏览器, <BR><BR>5、 http://yourMachineName:8080/examples/jsp/tutorial/helloworld/helloworld.jsp&gt; <BR></SPAN></div>
<div class="viewpage"> </div>
<p><a href="http://bbs.7880.com">>>>> 进入论坛交流 <<<<</a></p>
<div id="d4"><span class="d5">相关文章:</span><br /><li><a href="Article-3041840.html">JSP入门教程(4)</a></li><li><a href="Article-30291a0.html">JSP入门教程(3)</a></li><li><a href="Article-2ff8460.html">JSP入门教程(1)</a></li></div></div></div>

<!-- left -->


<!-- 尾部 包括:友情链接 + 版权声明  --> 

<div id="middle_7">
<div id="footer">
<a href="../Site.php?About">关于我们</a> | <a href="../Site.php?AD">广告联系</a> | <a href="../Site.php?Help" class="help">帮助(?) </a>| <a href="../Site.php?Copyright">版权声明</a> | <a href="../Site.php?Link">友情链接</a> | <a href="../Site.php?Contact">联系我们</a> | <a href="#" title="破釜沉舟: 源码下载,素材下载,为网站站长.设计师.编程开发者. 提供资源!" onclick="window.external.addfavorite('http://www.7880.com','破釜沉舟: 源码下载,素材下载,为网站站长.设计师.编程开发者. 提供资源!')">加入收藏</a>
</div>
<div id="copyright">Copyright 2004-2005 <a href="http://www.7880.com">www.7880.com</a> Inc. All rights reserved.
<script language="javascript" type="text/javascript" src="http://js.b.dx03.51.la/1618.js"></script> 
</div></div>
</body>
</html> 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -