< html> Cache Filter Test< /title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body>简单测试:s=< % int s=0; // mock time-consuming code for (int i=0;i< 1000;i++) { for (int j=0;j< 1000;j++) { s=s+j; } }out.print(s);%> </body>< /html> 教你用 servlet 将jsp文件内容转为html" name="description" /> <meta content="JAVA,servlet,jsp,html ,技巧" name="keywords" /> <SCRIPT type="text/javascript"> function change0(n) { m=3; for(i=1;i<m;i++) { eval("document.getElementById('h0"+i+"').className=''"); } eval("document.getElementById('h0"+n+"').className='on'"); for(i=1;i<m;i++) eval("document.getElementById('l0"+i+"').style.display='none'"); eval("document.getElementById('l0"+n+"').style.display='block'"); } </script> <link rel="stylesheet" type="text/css" href="http://www.ctocio.com.cn/w/css/all.css" /> <LINK id=cssfile type=text/css rel=stylesheet> <SCRIPT src="http://www.ctocio.com.cn/w/inc/js/function.js" type="text/javascript"></script> <SCRIPT src="http://www.ctocio.com.cn/w/inc/js/ajax.js" type="text/javascript"></SCRIPT> <SCRIPT src="http://www.ctocio.com.cn/w/inc/js/prototype.js" type="text/javascript"></SCRIPT> <SCRIPT src="http://www.ctocio.com.cn/w/inc/js/dragdrop.js" type="text/javascript"></SCRIPT> <SCRIPT src="http://www.ctocio.com.cn/w/inc/js/effects.js" type="text/javascript"></SCRIPT> <base target="_blank" /> </head> <body id="story"> <!-- header --> <div class="header"> <div id="top"> <h1>CTOCIO IT专家网</h1> <span class="top_left"> <script type="text/javascript" charset="gb2312" src="http://passport.yesky.com/cas/bar/bar24.jsp"></script> <!--   [ <a href="#" onclick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.ctocio.com.cn/')">设为首页</a> ] [ <a href="#" onclick="window.external.addFavorite('http://www.ctocio.com.cn/','IT专家网')" >加到收藏夹</a> ] --> </span> <span class="top_right"> <span class="f-FC0"><a href="http://www.tianjimedia.com/">天极传媒</a>:</span> <a href="http://www.chinabyte.com/" target="_self">比特网</a> | <a href="http://www.yesky.com/" target="_self">天极网</a> | <a href="http://www.ctocio.com.cn/" target="_self">IT专家网</a> | <a href="http://www.it365.com/" target="_self">IT商网</a> | <a href="http://www.52pk.com/">52PK游戏网</a> | <a href="http://www.mostar.cn/">手机天极</a> | <a href="http://www.itcpn.net/">IT分众</a> | <script>siterss(location.hostname);</script> </span> </div> <div id="master"> <div id="logo"> <span class="lg"><a href="http://www.ctocio.com.cn/"><img src="http://www.ctocio.com.cn/w/share/817/logo.gif" alt="IT专家网" border="0" /></a></span> </div> <div id="srh"> <div class="srh-frm"> <div id="ie_srh_form_bg"></div> <img src="http://www.ctocio.com.cn/w/share/817/srh_bg.png" id="srh_form_bg" width="100%" /> <form name="f" method="get" action="http://search.ctocio.com.cn/search.html" id="searchbox_006431706705204708706:pdaaf3ianwa"> <input type="hidden" name="cx" value="006431706705204708706:pdaaf3ianwa" /> <input type="hidden" name="cof" value="FORID:11" /> <input type=hidden name=ie value=GB2312> <input type=hidden name=oe value=GB2312> <input type=hidden name=hl value=zh-CN> <fieldset> <legend>IT专家网搜索</legend> <div id="v_srh_box"> <span class="srh_inp"><input type="text" value="" name="q" onmouseover="this.focus()" onfocus="this.select()" size="65" /></span> <span class="srh_bn_n"><button type="submit" name="sa" value="搜索"> 搜 索 </button></span> </div> <!-- <span class="pd"> <script type="text/javascript" charset="gb2312" src="http://passport.yesky.com/cas/bar/bar22.jsp"></script> <strong><em><a href="http://check.ctocio.com.cn/ctocio/registerAll.jsp" target="_blank">注册</a></em></strong> <strong><em><a href="http://check.ctocio.com.cn/ctocio/login.jsp" target="_blank">登录</a></em></strong> </span> --> </fieldset> </form> </div> </div> </div> </div> <!-- header end --> <div class="leaderboard"> <span id="ad1"></span> </div> <!-- navigation --> <div class="navigation" id="__topnav"> <ul> <li id="n_home" style="width:72px;float:left;"><a href="http://www.ctocio.com.cn" target="_self" name="专家首页">专家首页</a></li> <li id="n_cio" style="width:48px;float:left;"><a href="http://cio.ctocio.com.cn/" target="_self" name="CIO">CIO</a></li> <li id="n_smallbizit" style="width:85px;float:left;"><a href="http://smallbizit.ctocio.com.cn/" target="_self" name="中小企业IT">中小企业IT</a></li> <li id="n_erp" style="width:48px;float:left;"><a href="http://erp.ctocio.com.cn/" target="_self" name="ERP">ERP</a></li> <li id="n_server" style="width:60px;float:left;"><a href="http://server.ctocio.com.cn/" target="_self" name="服务器">服务器</a></li> <li id="n_storage" style="width:72px;float:left;"><a href="http://storage.ctocio.com.cn/" target="_self" name="存储">存储</a></li> <li id="n_security" style="width:48px;float:left;"><a href="http://security.ctocio.com.cn/" target="_self" name="安全">安全</a></li> <li id="n_exchange" style="width:85px;float:left;"><a href="http://exchange.ctocio.com.cn/" target="_self" name="Exchange">Exchange</a></li> <li id="n_database" style="width:72px;float:left;"><a href="http://database.ctocio.com.cn/" target="_self" name="数据库">数据库</a></li> <li id="n_career" style="width:72px;float:left;"><a href="http://career.ctocio.com.cn/" target="_self" name="IT职场">IT职场</a></li> <li id="n_whitepaper" style="width:72px;float:left;"><a href="http://whitepaper.ctocio.com.cn/" target="_self" name="白皮书">白皮书</a></li> <li id="n_whatis" style="width:72px;float:left;"><a href="http://whatis.ctocio.com.cn/" target="_self" name="Whatis">Whatis</a></li> <li id="n_hyhd" style="width:72px;float:left;"><a href="http://www.ctocio.com.cn/hyhd/" target="_self" name="会员活动">会员活动</a></li> <li id="n_bbs" style="width:47px;float:left;"><a href="http://bbs.ctocio.com.cn/" target="_self" name="BBS">BBS</a></li> </ul> <ul> <li id="n_mobilecomputing" style="width:72px;float:left;"><a href="http://mobilecomputing.ctocio.com.cn/" target="_self" name="移动计算">移动计算</a></li> <li id="n_networking" style="width:48px;float:left;"><a href="http://networking.ctocio.com.cn/" target="_self" name="网络">网络</a></li> <li id="n_olympics" style="width:85px;float:left;"><a href="http://cio.ctocio.com.cn/olympics/" target="_self" name="奥运信息化">奥运信息化</a></li> <li id="n_crm" style="width:48px;float:left;"><a href="http://crm.ctocio.com.cn/" target="_self" name="CRM">CRM</a></li> <li id="n_virtualization" style="width:60px;float:left;"><a href="http://virtualization.ctocio.com.cn/" target="_self" name="虚拟化">虚拟化</a></li> <li id="n_datacenter" style="width:72px;float:left;"><a href="http://datacenter.ctocio.com.cn/" target="_self" name="数据中心">数据中心</a></li> <li id="n_soa" style="width:48px;float:left;"><a href="http://soa.ctocio.com.cn/" target="_self" name="SOA">SOA</a></li> <li id="n_winsystem" style="width:85px;float:left;"><a href="http://winsystem.ctocio.com.cn/" target="_self" name="WinSystem">WinSystem</a></li> <li id="n_webservices" style="width:72px;float:left;"><a href="http://webservices.ctocio.com.cn/" target="_self" name="Web服务">Web服务</a></li> <li id="n_news" style="width:72px;float:left;"><a href="http://news.ctocio.com.cn/" target="_self" name="商业报道">商业报道</a></li> <li id="n_askexpert" style="width:72px;float:left;"><a href="http://askexpert.ctocio.com.cn/" target="_self" name="IT专家库">IT专家库</a></li> <li id="n_webcast" style="width:72px;float:left;"><a href="http://webcast.ctocio.com.cn/" target="_self" name="Webcast">Webcast</a></li> <li id="n_qa" style="width:72px;float:left;"><a href="http://www.ctocio.com.cn/qa/" target="_self" name="QA烧考坊">QA烧考坊</a></li> <li id="n_bbs" style="width:47px;float:left;"><a href="http://blog.ctocio.com.cn/" target="_self" name="Blog">Blog</a></li> </ul> </div> <!-- navigation end --> <h1></h1> <!-- main --> <div class="main"> <div class="story"> <div class="mod" style="border-bottom:none;"> <div class="hd"><h2>您现在的位置: <a href="http://www.ctocio.com.cn" target="_self">IT专家网</a> > <a href="http://webservices.ctocio.com.cn" target="_self">Web服务子站</a> > <a href="http://webservices.ctocio.com.cn/tips" target="_self">技巧</a> </h2></div> </div> <h1>教你用 servlet 将jsp文件内容转为html</h1> <div class="dots">作者: 执木,  出处:赛迪网 , 责任编辑: 李春禹, <div class="posted">2007-12-13 13:19</div></div> <h5 style="line-height:20px; font-weight:normal;padding:8px;">  只有成功初始化后此方法才能被调用处理用户请求。前一个参数提供访问初始请求数据的方法和字段,  * 后一个提供servlet构造响应的方法。< %@ page contentType="text/html; charset=gb2312" %>< html> <head> <title>Cache Filter Test< /title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body>简单测试:s=< % int s=0; // mock time-consuming code for (int i=0;i< 1000;i++) { for (int j=0;j< 1000;j++) { s=s+j; } }out.print(s);%> </body>< /html></h5> <div id="content"> <div class="guanggao"><span id="contentAdv"></span></div><P>  用<a href="http://whatis.ctocio.com.cn/searchwhatis/17/5949017.shtml" class="bluekey" target="_blank">servlet</a>将<a href="http://whatis.ctocio.com.cn/searchwhatis/484/5948484.shtml" class="bluekey" target="_blank">jsp</a>文件内容转为html。代码如下:   <TABLE style="BORDER-RIGHT: #cccccc 1px dotted; TABLE-LAYOUT: fixed; BORDER-TOP: #cccccc 1px dotted; BORDER-LEFT: #cccccc 1px dotted; BORDER-BOTTOM: #cccccc 1px dotted" cellSpacing=0 cellPadding=6 width="95%" align=center border=0> <TBODY> <TR> <TD style="WORD-WRAP: break-word" bgColor=#f3f3f3>package examples; <BR>  <a href="http://whatis.ctocio.com.cn/searchwhatis/480/6025480.shtml" class="bluekey" target="_blank">import</a> <a href="http://whatis.ctocio.com.cn/searchwhatis/403/5948403.shtml" class="bluekey" target="_blank">java</a>.io.ByteArrayOutputStream; <BR>  import java.io.FileOutputStream; <BR>  import java.io.IOException; <BR>  import java.io.OutputStreamWriter; <BR>  import java.io.PrintWriter; <BR>  import javax.servlet.RequestDispatcher; <BR>  import javax.servlet.ServletContext; <BR>  import javax.servlet.ServletException; <BR>  import javax.servlet.ServletOutputStream; <BR>  import javax.servlet.http.HttpServlet; <BR>  import javax.servlet.http.HttpServletRequest; <BR>  import javax.servlet.http.HttpServletResponse; <BR>  import javax.servlet.http.HttpServletResponseWrapper; <BR>  public <a href="http://whatis.ctocio.com.cn/searchwhatis/213/5947213.shtml" class="bluekey" target="_blank">class</a> ToHtml extends HttpServlet { <BR>  private static final <a href="http://whatis.ctocio.com.cn/searchwhatis/400/6026400.shtml" class="bluekey" target="_blank">String</a> <a href="http://whatis.ctocio.com.cn/searchwhatis/403/5947403.shtml" class="bluekey" target="_blank">CONTENT</a>_TYPE = "<a href="http://whatis.ctocio.com.cn/searchwhatis/162/6092662.shtml" class="bluekey" target="_blank">text</a>/html; charset=GBK"; <BR>  // Initialize global variables <BR>  public void init() throws ServletException { <BR>  } <BR>  // <a href="http://whatis.ctocio.com.cn/searchwhatis/312/6026312.shtml" class="bluekey" target="_blank">Process</a> the HTTP Get request <BR>  public void doGet(HttpServletRequest request, HttpServletResponse response) <BR>  throws ServletException, IOException { <BR>  response.setContentType(CONTENT_TYPE); <BR>  service(request, response); <BR>  /**</TD></TR></TBODY></TABLE>  * 只有成功初始化后此方法才能被调用处理用户请求。前一个参数提供访问初始请求数据的方法和字段,</P> <P>  * 后一个提供servlet构造响应的方法。</P><div id="numpage">共2页。 <a href="http://webservices.ctocio.com.cn/tips/153/7716653.shtml" target="_self"><span>1</span></a> <a href="http://webservices.ctocio.com.cn/tips/153/7716653_1.shtml" target="_self">2</a> <a href="http://webservices.ctocio.com.cn/tips/153/7716653_1.shtml" target="_self"><font face="Webdings">:</font></a></div> </div> <ul class="keywords"> <li><b>本文关键词:</b></li> <!-- Error --> </ul> <!--文章评论开始--> <script language="JavaScript"> <!-- var aid = 7716653; var channelid = 20504; var tagname = ""; //--> </script> <div class="cb db"></div> <div class="mod" id="comm"> <div class="hd"><h2>最新评论</h2></div> <div class="bd" id="commentmsg" style="padding:10px"> <a href="http://bbs.ctocio.com.cn/forum-105-1.html" title="进入论坛查看更多精彩评论">还没有评论,查看其他精彩评论</a> </div></div> <script language="JavaScript"> document.domain='ctocio.com.cn'; var Msg_loopNum = 5; function showMsg() { var bar=''; if(typeof comments != 'undefined') { if (!comments || comments.length < 1) return; document.getElementById('commentmsg').innerHTML = comments; if(comm_p) bar+='<a href="#comm" target="_self" onclick="show_p('+(comm_p-1)+')">上一页</a>'; if(tids>(comm_p+1)*10) bar+='<a href="#comm" target="_self" onclick="show_p('+(comm_p+1)+')">下一页</a>'; document.getElementById('show_t').innerHTML=bar; span=document.getElementsByTagName('span'); for (i=0;i<span.length;i++) { if(span[i].className=='comms')span[i].innerHTML=tids; } }else{ if(Msg_loopNum > 0) {setTimeout(showMsg,100);Msg_loopNum--;} } } function show_p(p){ url=("http://bbs.ctocio.com.cn/ask/commentshow.php?aid="+aid+"&p="+p).replace('p=0',Math.random()); s.src=url; showMsg(); } s=document.createElement("script"); s.type="text/javascript"; s.src="http://bbs.ctocio.com.cn/ask/commentshow.php?aid="+aid; var head=document.getElementsByTagName("head")[0]; head.appendChild(s); s.onload=s.onreadystatechange=function() { if(this.readyState && this.readyState=="loading") return; showMsg(); } s.onerror=function(){ head.removeChild(s); //alert('加载js有错误'); } </script> <div class="mod" id="comm_1"> <div class="hd"><h2>网友评论</h2></div> <div class="bd"> <center> <form id="loginform" method="post" name="login" target="_self" style="display:none"> <input type="text" id="username" name="username" size="12" maxlength="40" tabindex="1" /> <input type="password" id="password" name="password" size="10" tabindex="2" onkeypress="if((event.keyCode ? event.keyCode : event.charCode) == 13) $('loginform').submit()" />  <button name="userlogin" type="submit" value="true">登录</button>  <button onclick="document.loginform.style.display='none';document.myform.style.display='block'">取消</button> </form> </center> <iframe name="post_it" id="post_it" height="0" width="0" style="display:none"></iframe> <form name="myform" id="myform" method="post" target="post_it"> <TABLE style="MARGIN-BOTTOM: 10px" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY><TR><TD style="PADDING-LEFT: 10px" align=left height=30> 笔名 <INPUT size=26 value=IT专家网网友 name="nickname" onfocus="gotolog();"> <INPUT style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #ffffff 1px solid; BACKGROUND: #d9d9d9; BORDER-LEFT: #ffffff 1px solid; CURSOR: hand; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 22px" type="submit" value=发表评论 onmouseover="log_bbs();"onclick="return myformcheck();"> </TD></TR> <input type="hidden" name="subject" value="" /> <input type="hidden" name="article" value="" /> <input type="hidden" name="message" value="" /> <input type="hidden" name="aid" value="" /> <TR><TD style="PADDING-LEFT: 10px; PADDING-BOTTOM: 10px" align=left> <TEXTAREA style="FONT-SIZE: 12px; WIDTH: 450px" name="mes" rows="5" wrap="VIRTUAL" cols="88" onfocus="this.value='';">请输入评论</TEXTAREA></TD></TR> <TR><TD style="PADDING-LEFT: 10px; PADDING-BOTTOM: 10px" align=left>请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。    IT专家网友拥有管理笔名和留言的一切权利。</TD></TR> </TBODY></TABLE></FORM> <script language="JavaScript"> if(isLoginTemp) { n=document.myform.nickname; n.value=nickname; n.disabled=true; } function log_bbs() { if(document.myform.message.value=="请输入评论"){document.myform.message.value='';return} post_it.location.href='http://bbs.ctocio.com.cn/ask/log.php'; } function myformcheck(){ var m=document.myform.mes.value; if(m.length<4 || m.length>400){alert("留言不能少于4或者超出400的长度!");return false;} m=m.replace(/\n/g,'').replace(/^\s+|\s+$/g,""); document.myform.message.value=m; document.myform.mes.value=''; document.myform.aid.value=aid; title=document.title.split('_')[0]; document.myform.subject.value=title; p='<p>'+document.getElementsByTagName('p')[0].innerHTML+'.....</p>'; try{p=document.getElementById('content').innerHTML;}catch(e){} p=p.replace(/\/imagelist\//g,'http://www.ctocio.com.cn/imagelist/'); c='<div>'+p+'</div>'; url=location.href.replace(location.hash,'').replace(window.location.search,''); document.myform.article.value=c+'<p>查看原文:<a href='+url+'>'+url+'</a></p>'; document.myform.action="http://bbs.ctocio.com.cn/ask/comment.php"; return true; } function gotolog() { lg=document.loginform; if(confirm("您还没有登陆,要登陆吗?\n\n登陆后发表评论能够获得论坛金币")) { var url=encodeURIComponent(location.href); lg.action="http://passport.yesky.com/cas/login?service="+url+"&furl="+url+"%3F1"; lg.style.display="block"; lg.username.focus(); document.myform.style.display="none"; }else{ document.myform.nickname.focus(); } } </script> </div> </div> <!--文章评论结束--> <div class="leftcontent"> <div class="mod fl"> <div class="hd"><h2>相关文章</h2></div> <div class="bd"> <ul class="module_list0" style="height:240px;overflow:hidden;"> <li><a href="http://webservices.ctocio.com.cn/comment/453/7711453.shtml">深入剖析JSP和Servlet对中文的处理过程 </a></li><li><a href="http://webservices.ctocio.com.cn/comment/97/7683597.shtml">关于Servlet和JSP技术的概述</a></li><li><a href="http://webservices.ctocio.com.cn/comment/240/7673240.shtml">JAVA基础:Servlet技术及其与CGI的比较</a></li><li><a href="http://webservices.ctocio.com.cn/tips/68/7172568.shtml">纯 servlet:重新考虑视图</a></li><li><a href="http://webservices.ctocio.com.cn/tips/430/6412930.shtml">使用异步Servlet扩展AJAX应用程序 </a></li><li><a href="http://webservices.ctocio.com.cn/tips/474/6371974.shtml">在Weblogic环境下调试Turbine Servlet实例 </a></li><li><a href="http://webservices.ctocio.com.cn/webzjdysummary/98/6172098.shtml">什么是servlet context? </a></li><li><a href="http://webservices.ctocio.com.cn/webzjdysummary/90/6172090.shtml">在apach5.x中改变servlet的上下文 </a></li><li><a href="http://webservices.ctocio.com.cn/askexperts/149/6166649.shtml">什么是servlet context? </a></li><li><a href="http://webservices.ctocio.com.cn/askexperts/203/6160203.shtml">在apach5.x中改变servlet的上下文 </a></li> </ul> </div> </div> <div class="mod fr"> <div class="hd"><h2>最新文章</h2></div> <div class="bd"> <ul class="module_list0" style="height:240px;overflow:hidden;"> <li><a href="http://webservices.ctocio.com.cn/tips/25/7764025.shtml">面向对象的编程思想在ASP.NET中的运用</a></li><li><a href="http://webservices.ctocio.com.cn/comment/56/7780556.shtml">ASP.net服务器控件漫谈</a></li><li><a href="http://database.ctocio.com.cn/tips/192/8121692.shtml">Linux下Resin+JSP+MySQL安装和配置</a></li><li><a href="http://database.ctocio.com.cn/tips/14/8106014.shtml">在Java/JDBC中透明处理“ORA-04068”错误</a></li><li><a href="http://webservices.ctocio.com.cn/tips/300/8055800.shtml">实施SOA架构除了涉及技术还有成本分摊</a></li><li><a href="http://webservices.ctocio.com.cn/comment/186/8048186.shtml">如何保证AJAX程序安全应用</a></li><li><a href="http://webservices.ctocio.com.cn/comment/268/8040268.shtml">JVM动态语言比武</a></li><li><a href="http://webservices.ctocio.com.cn/tips/215/8040215.shtml">一种在IE中编写Mashups的新方法</a></li><li><a href="http://webservices.ctocio.com.cn/wpsum/483/8039983.shtml">Premiere与Appcelerator合作 开发web新平台</a></li><li><a href="http://webservices.ctocio.com.cn/286/8033286.shtml">Ruby on Rails开发新体验</a></li> </ul> </div> </div> </div class="leftcontent"><div class="cb db"></div> <!--问题开始--> <script language="javascript"> <!-- if(typeof(aid) != "undefined") { url =escape(document.URL); document.write('<IFRAME SRC="http://iask.ctocio.com.cn/userquest/xml/index.html?aid='+aid+'&url='+url+'" width="598" height="370" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#fff" name="wt"></IFRAME>'); } //--> </script> <!--问题结束--> </div class="story"> <div class="rightcontent"> <DIV style="PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; HEIGHT: 42px"> <DIV style="FLOAT: left"><A href="http://webservices.ctocio.com.cn/news/473/7609473.shtml"><IMG height=36 src="/imagelist/2007/291/75m6axgt1ngx.jpg" width=92 border=0></A></DIV> <DIV style="FLOAT: left; MARGIN-LEFT: 17px"><A href="mailto:webservices@ctocio.com.cn"><IMG height=36 src="/imagelist/2007/291/q815i3dj0l8l.jpg" width=92 border=0></A></DIV> <DIV style="FLOAT: right"><A href="msnim:chat?contact=baochunlin8126@hotmail.com"><IMG height=36 src="/imagelist/2007/291/z12hz02msp5l.jpg" width=122 border=0></A></DIV></DIV><A href="http://gocom.primeton.com/special/ford/" target=_blank></A> <div class="bq"> <ul> <li class="on" id="h01" onmouseover="change0(1)" style="border-right:#a5b5c0 1px solid;">周排行榜</li> <li id="h02" onmouseover="change0(2)">月排行榜</li> </ul> </div> <div class="mod"> <div class="bd" style="BORDER-top: #fff 1px solid;"> <ul class="module_list" id="l01"> <li><a href="http://webservices.ctocio.com.cn/wsdev/25/8590025.shtml">评论分析:MVC真的适合PHP么?</a></li><li><a href="http://webservices.ctocio.com.cn/wsdev/458/8600458.shtml">XML在B/S架构开发中的应用</a></li><li><a href="http://webservices.ctocio.com.cn/wsnettec/117/8601117.shtml">C#中抽象类和接口的区别与使用</a></li><li><a href="http://webservices.ctocio.com.cn/wsdev/48/8590048.shtml">PHP初学者常见十四条令大总结</a></li><li><a href="http://webservices.ctocio.com.cn/wsdev/221/8590221.shtml">PHP开发语言中的精华和技巧</a></li><li><a href="http://webservices.ctocio.com.cn/wsare/259/8608259.shtml">SaaS帮助中小企业实现管理创新</a></li><li><a href="http://webservices.ctocio.com.cn/wsdev/207/8590207.shtml">在PHP中全局变量的使用详解</a></li><li><a href="http://webservices.ctocio.com.cn/wsare/461/8606461.shtml">Sun Java程序设计PK大赛拉开帷幕</a></li><li><a href="http://webservices.ctocio.com.cn/wsare/442/8600442.shtml">IBM最有可能收购Sun组成服务器巨无霸</a></li><li><a href="http://webservices.ctocio.com.cn/wsdev/17/8590017.shtml">PHP服务器变量设置的方法介绍</a></li> </ul> <ul class="module_list" id="l02" style="display:none;"> <li><a href="http://webservices.ctocio.com.cn/wsjavtec/413/8559413.shtml">作为程序员你知道这十大热门技术吗</a></li><li><a href="http://webservices.ctocio.com.cn/wsare/215/8577715.shtml">如何选择最合适的Web开发框架</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/307/8556307.shtml">J2EE架构的6个最佳实践</a></li><li><a href="http://webservices.ctocio.com.cn/news/131/8582631.shtml">微软Visual Studio 2010开发计划初探</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/477/8570977.shtml">JAVA文件中获取该项目的相对路径方法</a></li><li><a href="http://webservices.ctocio.com.cn/wsnettec/498/8579498.shtml">C#里面比较时间大小三种方法</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/347/8556347.shtml">JAVA入门之Date类型与String类型转化</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/442/8571942.shtml">实现 Java 平台的三种方式</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/273/8556773.shtml">数据库设计中的14个技巧</a></li><li><a href="http://webservices.ctocio.com.cn/wsjavtec/400/8559400.shtml">Java开发人员应该知道的十大戒律</a></li> </ul> </div> </div> <style type="text/css"> <!-- .STYLE1 {color: #FF0000} .STYLE2 {color: #0000CC} --> </style> <div class="mod" id="olympics"> <div class="hd"></div> <div class="bd"> <ul class="module_list"> <li><a href="http://q.yesky.com/group/review-17594467.html" class="STYLE1">拍出我最爱 雷柏无线鼠“拍对”有奖</a></li> <li><a href="http://in.yesky.com/142/8333642.shtml">魅力中文,只能看不能读的文章</a></li> <li><a href="http://www.it365.com/kpzt/190/8539190.shtml" class="STYLE2">活动:IT商网首届全国IT卖场20佳评选</a></li> <li><a href="http://www.chinabyte.com/30years">比特网改革开放30年大型专题</a></li> <li><a href="http://www.it365.com/kpzti/187/8553687.shtml">2008(首届)全国各区域十佳渠道商评选</a></li> <li><a href="http://www.yesky.com/kpzhuanti/364/8599864.shtml">飞利浦音箱有奖试用美文征集活动</a></li> <li><a href="http://in.yesky.com/blt8/">取消十一长假,您同意吗?</a></li> <li><a href="http://in.yesky.com/hero/Samsung_dreams/">三星体验活动“打出你的财富梦”大奖等你拿</a></li> <li><a href="http://spec.52pk.com/jinling/">为52PK投票赢取心动大奖</a></li> <li><a href="http://in.yesky.com/426/8320426.shtml">“三星眼力大比拼”第二部手机 花落成都</a></li> </ul> </div> </div> <div class="mod"> <div class="hd"><h2>邮件订阅</h2></div> <div class="bd"> <div class="module_list" style="text-align:left;"> <FORM name=newsletter onsubmit="return datacheck();" action=http://check.ctocio.com.cn/ctocio/quickSubscribe.do target=blank><INPUT type=hidden value=12 name=siteid> <INPUT type=hidden value=121 name=newsletters> <INPUT style="WIDTH: 200px" onclick="if (this.value==this.defaultValue) this.value=''" value=这里输入你的Email name=email><INPUT class=submit type=submit size=10 value=订阅 name=button>  <INPUT class=submit onclick="window.open('http://newsletter.ctocio.com.cn/103/7455603.shtml');" type=button size=10 value=样刊 name=button>  <INPUT class=submit onclick="window.open('http://check.ctocio.com.cn/ctocio/registerAll.jsp');" type=button size=10 value=用户注册 name=button>   <INPUT class=submit onclick="window.open('http://newsletter.ctocio.com.cn/');" type=button size=10 value=往期查询 name=button> </FORM> </div> </div> </div> <div class="mod"> <div class="hd"><h2><a href="/cc_zjdy/">专家答疑</a></h2> </div> <div class="bd"> <ul class="module_list" style="height:190px;overflow:hidden;"> <li><strong>2008-05-27 08:38</strong><a href="http://soa.ctocio.com.cn/soa_zjdy/440/8133940.shtml">SOA需要支持服务、事件与流程</a></li><li><strong>2008-04-11 05:00</strong><a href="http://webservices.ctocio.com.cn/wsjavtec/431/8069931.shtml">演示在SE6中调用编译器的两种方法</a></li><li><strong>2008-04-11 00:00</strong><a href="http://webservices.ctocio.com.cn/wsjavtec/499/8069999.shtml">保存Java程序状态及设置Properties文件</a></li><li><strong>2008-04-10 05:00</strong><a href="http://webservices.ctocio.com.cn/wsare/28/8069528.shtml">XML WebService完全实例详细解析</a></li><li><strong>2008-04-10 05:00</strong><a href="http://webservices.ctocio.com.cn/wsare/283/8069783.shtml">不用编写客户端调试WebServices</a></li><li><strong>2008-04-10 04:00</strong><a href="http://webservices.ctocio.com.cn/wsare/238/8069238.shtml">在ASP.NET Atlas中调用Web Service</a></li><li><strong>2008-04-10 04:00</strong><a href="http://webservices.ctocio.com.cn/317/8069317.shtml">了解ASP.NET2.0向其它网页传递信息的方法</a></li><li><strong>2008-04-10 04:00</strong><a href="http://webservices.ctocio.com.cn/393/8069393.shtml">php页面跳转函数PHP中重新定向到另一个页面</a></li><li><strong>2008-04-10 04:00</strong><a href="http://webservices.ctocio.com.cn/wsare/484/8069484.shtml">当前流行的J2EE WEB应用架构分析</a></li><li><strong>2008-04-10 04:00</strong><a href="http://webservices.ctocio.com.cn/472/8069472.shtml">Web Services的测试模型与代码摘录</a></li> </ul> </div> </div> <div class="mod"> <div class="hd"><h2><a href="/cc_bps/">白皮书</a></h2> </div> <div class="bd"> <ul class="module_list" style="height:190px;overflow:hidden;"> <li><strong>2008-10-17 11:38</strong><a href="http://webservices.ctocio.com.cn/wpsum/428/8353428.shtml">师辉阳先生本次沙龙的演讲PPT</a></li><li><strong>2008-09-25 16:04</strong><a href="http://webservices.ctocio.com.cn/wpsum/239/8324739.shtml">周骊晓先生发言PPT下载</a></li><li><strong>2008-03-14 08:58</strong><a href="http://webservices.ctocio.com.cn/wpsum/483/8039983.shtml">Premiere与Appcelerator合作 开发web新平台</a></li><li><strong>2008-03-12 11:42</strong><a href="http://soa.ctocio.com.cn/soa_bps/474/8035974.shtml">SOA实施过程中十大经验教训</a></li><li><strong>2008-03-11 08:53</strong><a href="http://webservices.ctocio.com.cn/wpsum/238/8033738.shtml">微软公司根据业务需求扩展Web服务</a></li><li><strong>2008-03-10 09:34</strong><a href="http://soa.ctocio.com.cn/soa_bps/311/8032311.shtml">7个帮助你有效地实现RIA解决方案的窍门</a></li><li><strong>2008-03-07 16:29</strong><a href="http://soa.ctocio.com.cn/soa_bps/353/8031353.shtml">开源Apache Camel简化SOA实施进程</a></li><li><strong>2008-03-07 16:13</strong><a href="http://soa.ctocio.com.cn/soa_bps/306/8031306.shtml">从BPM开始通向SOA的康庄大道</a></li><li><strong>2008-03-07 15:21</strong><a href="http://soa.ctocio.com.cn/soa_bps/167/8031167.shtml">ERUCE利用SOA降低其软件集成成本</a></li><li><strong>2008-03-06 13:08</strong><a href="http://webservices.ctocio.com.cn/wpsum/21/7833521.shtml">重思SOA及其整合应用</a></li> </ul> </div> </div> <div class="mod"> <div class="hd"><h2><a href="http://webcast.ctocio.com.cn/">Webcast</a></h2> </div> <div class="bd" style="BORDER-top: #fff 1px solid;padding:0px;"> <SCRIPT src="http://www.ctocio.com.cn/w/inc/CreateFlashCode.js" type=text/javascript></SCRIPT> <SCRIPT type=text/javascript> <!-- plylst = "http://www.ctocio.com.cn/imagelist/2008/150/jw2404r4ruq1.xls"; swfSrc = "http://www.ctocio.com.cn/w/inc/wdfeng_h.swf"; w = "325"; h = "185"; bg = "#ffffff"; wmode = "transparent"; flashVars = "plylst=" + plylst; if ( MM_FlashCanPlay ) { document.write('<ul>'); document.write(''); CreateFlashCode(swfSrc, w, h, bg, wmode, flashVars); document.write('</ul>');} //--> </SCRIPT> </div> </div> <div class="mod"> <div class="hd"><h2><a href="http://bbs.ctocio.com.cn/">BBS</a></h2> </div> <div class="bd"> <ul class="module_list" style="height:190px;overflow:hidden;"> <script language="JavaScript" src=http://bbs.ctocio.com.cn/api/javascript.php?key=webservices></script> </ul> </div> </div> <div class="mod"> <div class="hd"><h2>该文章的读者还阅读了</h2></div> <div class="bd"> <ul class="module_list" style="height:190px;overflow:hidden;"> <li><a href="http://security.ctocio.com.cn/tips/337/7716837.shtml">浅谈javascript函数劫持</a></li><li><a href="http://webservices.ctocio.com.cn/tips/139/7716639.shtml">入门:Java 中对文件的读写操作之比较</a></li><li><a href="http://webservices.ctocio.com.cn/tips/48/7714048.shtml">J2ME网络程序中移动资费页面的处理</a></li><li><a href="http://webservices.ctocio.com.cn/tips/489/7713489.shtml">编程基础:深入分析Java中的数据结构</a></li><li><a href="http://www.ctocio.com.cn/282/7711782.shtml">Web Service安全保障之SSL应用</a></li><li><a href="http://webservices.ctocio.com.cn/tips/139/7711639.shtml">Spring中bean的基本xml配置</a></li><li><a href="http://webservices.ctocio.com.cn/tips/13/7711513.shtml">JAVA基础:将数据库操作封装到Javabean</a></li><li><a href="http://webservices.ctocio.com.cn/tips/351/7709351.shtml">Hibernate应用开发</a></li><li><a href="http://webservices.ctocio.com.cn/tips/430/7708930.shtml">JavaBean在jsp和serlvle中传递技术要点</a></li><li><a href="http://security.ctocio.com.cn/tips/204/7707204.shtml">安全技巧:如何编写安全的PHP代码</a></li> </ul> </div> </div> <div class="mod"> <div class="hd"><h2><a href="http://whatis.ctocio.com.cn/">Whatis</a></h2> </div> <div class="bd" id="whatislist2"> <ul><li><a href="http://cio.ctocio.com.cn/pinglun/265/8053765.shtml">什么是开源BI系统</a></li><li><a href="http://webservices.ctocio.com.cn/280/7800280.shtml">WOA</a></li><li><a href="http://webservices.ctocio.com.cn/whatis/485/7665985.shtml">UML</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/239/7587739.shtml">OOXML</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/207/7587707.shtml">OOPSLA</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/175/7587675.shtml">ooblick</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/237/7587737.shtml">办公室开发可标记语言</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/155/7587655.shtml">本体</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/154/7587654.shtml">Ontology</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/82/7587582.shtml">脱机文件夹文件</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/78/7587578.shtml">offline folder file</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/251/7582751.shtml">协作框图</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/253/7582753.shtml">collaboration diagram</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/219/7582719.shtml">CCJ</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/212/7582712.shtml">collaborative citizen journalism</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/178/7582678.shtml">collocation</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/167/7582667.shtml">托管</a></li><li><a href="http://whatis.ctocio.com.cn/searchwhatis/205/7582705.shtml">协作公民新闻</a></li><li><a href="http://webservices.ctocio.com.cn/whatis/444/7572444.shtml">Higgins Trust Framework</a></li><li><a href="http://webservices.ctocio.com.cn/whatis/64/7496564.shtml">Foo Camp</a></li></ul> </div> </div> </div class="rightcontent"> </div class="main"> <!-- main end --> <!--文件尾--> <div class="floor"> <div><span> <a href="http://www.tianjimedia.com/ar/" class="f-FFF">天极服务</a> | <a href="http://www.tianjimedia.com/gsjj/" class="f-FFF">关于我们</a> | <a href="http://www.tianjimedia.com/attorney/" class="f-FFF">网站律师</a> | <a href="http://www.tianjimedia.com/invitation/" class="f-FFF">加入我们</a> | <a href="http://www.tianjimedia.com/contact/" class="f-FFF">联系我们</a> | <a href="http://www.ctocio.com.cn/web/mediakits/" class="f-FFF">广告业务</a> | <a href="http://www.ctocio.com.cn/web/link/" class="f-FFF">友情链接</a> | <a onclick='javascript:submitFeedback();' style='cursor:hand;'>我要挑错</a> </span></div> </div> <div class="floor_1"> <!--版权声明 开始--> <div id="footlogo"><a href="http://www.tianjimedia.com/"><IMG SRC="http://www.ctocio.com.cn/w/share/817/tmg.gif" WIDTH="120" HEIGHT="52" BORDER="0" ALT="IT尽在天极"></a> </div> <div class="fl" style="width:520px">All Rights Reserved, Copyright 2004-2008, Ctocio.com.cn<br/> <a href="http://www.yesky.com/cpcwd/74590868828323840/20030805/1719074.shtml">渝ICP证B2-20030003号</a> <a href="mailto:webmaster@chinabyte.com">如有意见请与我们联系</a> <a href="http://www.chinabyte.net/">powered by 天极内容管理平台CMS4i </a></div> <div class="fr"><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001012000005"> <img src="http://www.ctocio.com.cn/TLimages/ttimages/newzizhan/zhuce.gif" width="40" height="48" border="0" /></a></div> <div class="cb db"></div> <!--版权声明 结束--> </div> <!--我要挑错 --> <form action="http://feedback.yesky.com/reader/user/doWelcome.view" name="feedbackForm" id="feedbackForm" target="_blank"> <input type="hidden" name="refurl" value="" id="refurl" /> <input type="hidden" name="reftitle" value="" id="reftitle" /> </form> <script language="JavaScript" src="http://www.ctocio.com.cn/w/inc/js/o_code.js"></script> <!-- <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-2650663-1"; urchinTracker(); </script> --> <!--广告---> <span id="span_ad1"> <script> switch (ifurl) { default : document.write("<IFRAME SRC=\"http://www.ctocio.com.cn/ttfiles/ccimages/"+ifurl+"_tlgg.html\" width=\"945\" height=\""+iheight+"\" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR='#000'></IFRAME>"); } </script> </span> <script>document.getElementById("ad1").innerHTML=document.getElementById("span_ad1").innerHTML;document.getElementById("span_ad1").innerHTML="";</script> <span id="span_ad3"> <script> document.write('<SCRIPT LANGUAGE="JavaScript" src='+jsurl+'><\/SCRIPT>'); </script> </span> <script>document.getElementById("contentAdv").innerHTML=document.getElementById("span_ad3").innerHTML;document.getElementById("span_ad3").innerHTML="";</script> <span id="span_text"> <script> document.write('<SCRIPT LANGUAGE="JavaScript" src='+texturl+'><\/SCRIPT>'); </script> </span> <script>document.getElementById("advTailValue").innerHTML=document.getElementById("span_text").innerHTML;document.getElementById("span_text").innerHTML="";</script> <!--监控代码--> <div id="nav"><script>siteid(window.location.href);</script></div> <script language="Javascript"> sitenav(window.location.href); function sitenav(articleurl) { var articleurl; var ename = ""; reg = /(\w+)\.(\w+)\.(\w+)\.(\w+)/; if(reg.test(articleurl)) { reg.exec(articleurl); ename = RegExp.$1; } if(/cn\/qa\//.test(articleurl))ename="qa"; if(/cn\/olympics\//.test(articleurl))ename="olympics"; if(/cn\/hyhd\//.test(articleurl))ename="hyhd"; // if(/cn\/soa\//.test(articleurl))ename="soa"; switch (ename) { case 'webservices' : ename = 'n_webservices' break case 'win2000' : ename = 'n_winsystem' break case 'winsystem' : ename = 'n_winsystem' break case 'database' : ename = 'n_database' break case 'mobilecomputing' : ename = 'n_mobilecomputing' break case 'security' : ename = 'n_security' break case 'cio' : ename = 'n_cio' document.write('<script type=text/javascript src=http://yeskyafp.allyes.com/main/adfshow?user=YESKYAFP|adtest|cc_cio_hp&db=yeskyafp&border=0&local=yes&js=ie><\/script>') break case 'storage' : ename = 'n_storage' break case 'networking' : ename = 'n_networking' break case 'exchange' : ename = 'n_exchange' break case 'smallbizit' : ename = 'n_smallbizit' break case 'windowssecurity' : ename = 'n_windowssecurity' break case 'crm' : ename = 'n_crm' break case 'erp' : ename = 'n_erp' break case 'server' : ename = 'n_server' break case 'askexpert' : ename = 'n_askexpert' break case 'hyhd' : ename = 'n_hyhd' break case 'whatis' : ename = 'n_whatis' break case 'whitepaper' : ename = 'n_whitepaper' break case 'webcast' : ename = 'n_webcast' break case 'qa' : ename = 'n_qa' break case 'bbs' : ename = 'n_bbs' break case 'news' : ename = 'n_news' break case 'datacenter' : ename = 'n_datacenter' break case 'career' : ename = 'n_career' break case 'olympics' : ename = 'n_olympics' break case 'virtualization' : ename = 'n_virtualization' break case 'soa' : ename = 'n_soa' break default : ename = 'n_home' } document.getElementById(ename).innerHTML=document.getElementById("nav").innerHTML; document.getElementById("nav").innerHTML=""; } </script> <!--计数器--> <script language="Javascript"> var now = new Date(); document.write("<img src='http://counter.ctocio.com.cn/counter.shtml?CID=20591&AID=7716653&refer="+escape(document.referrer) + "&rand="+ now.getTime() +"&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>"); </script> <noscript> <img src="http://counter.ctocio.com.cn/counter.shtml?CID=20591&AID=7716653&refer=noscriptcounter&cur=noscriptcounter" border='0' width='0' height='0'/> </noscript> <SCRIPT LANGUAGE="JavaScript"> //-------------设定Cookie值开始--------------- //当用户的CustomerId不为-1时就写Cookie if(customerid > 0){ var today = new Date(); var expireDay = new Date(); //保存一年Cookie var msPerYear = 365*24*3600*1000; expireDay.setTime(today.getTime() + msPerYear); document.cookie = "customerid=" + customerid + ";expires=" + expireDay.toGMTString() + ";path=/;domain=ctocio.com.cn"; } //-------------设定Cookie值结束--------------- //跟踪 var seconds = 0; setInterval("startCount()",1000); function startCount(){ seconds++; } function getCookie(Key){ var search = Key + "="; begin = document.cookie.indexOf(search); if(begin != -1){ begin +=search.length; end = document.cookie.indexOf(";",begin); if(end == -1) end = document.cookie.length; return document.cookie.substring(begin,end); } } var customerid=getCookie("customerid"); if(customerid && customerid>0){ document.write("<img src='http://219.239.88.47:8080/ttcounter/counter.html?customerId=" + customerid + "&aid=7716653&title=教你用 servlet 将jsp文件内容转为html&referrer="+escape(document.referrer)+"&url="+escape(document.URL)+"&duration=" + seconds + "' border='0' alt='' width='0' height='0'>"); } //白皮书 var wpath = location.pathname; var wename = ""; reg = /\/(\w+)\/(\d+)\/(\S+)/; if(reg.test(wpath)) { reg.exec(wpath); wename = RegExp.$1; } switch (wename) { case "whitepapers" : document.write("<img src='http://check.ctocio.com.cn/ttapps/counter.jsp?customerid="+customerid+"&aid=7716653&title=教你用 servlet 将jsp文件内容转为html' border='0' alt='' width='0' height='0'>"); break case "askexperts" : document.write("<img src='http://check.ctocio.com.cn/ttapps/counter.jsp?customerid="+customerid+"&aid=7716653&title=教你用 servlet 将jsp文件内容转为html' border='0' alt='' width='0' height='0'>"); break } </SCRIPT> <!-- START Nielsen//NetRatings SiteCensus V5.2 --> <!-- COPYRIGHT 2006 Nielsen//NetRatings --> <script type="text/javascript"> var _rsCI="cn-yesky"; var _rsCG="0"; var _rsDN="//secure-cn.imrworldwide.com/"; var _rsCC=0; var _rsSE=1; var _rsSM=0.01; var _rsSS=1500; </script> <script type="text/javascript" src="//secure-cn.imrworldwide.com/v52.js"></script> <noscript> <img src="//secure-cn.imrworldwide.com/cgi-bin/m?ci=cn-yesky&cg=0" alt=""/> </noscript> <!-- END Nielsen//NetRatings SiteCensus V5.2 --> </body> </html>