今天是: | 首页 | 营销咨讯 | 推销技巧 | 网络营销 | 论文大全 | 外贸知识 | 市场信息 | 留言咨询 | 论坛 |
最 新 文 章
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 热 门
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章IMPACT揭秘网络营销秘诀
普通文章广告也要得民心,令人生厌…
普通文章谷歌在华战略转向中小企业
普通文章博客营销文章写作技巧
普通文章网盛1800万收购中华纺织网
普通文章互联网进入营销阶段
最 新 推 荐
推荐文章网站策划之栏目策划
推荐文章网络营销--创意致胜 充满“…
推荐文章Web2.0创业者面临艰难选择…
相 关 文 章
  • JSP连接SQL Server 2000系统…

  • win2000server IIS和tomcat5…

  • 成为一个成功Jsp程序员的九步

  • Tomcat5+Mssql server 2000数…

  • 测试你对技术的掌握度:JSP程…

  • Eclipse 3.0 上配置JSP开发环…

  • 新手入门经典:Jsp环境配置

  • Apache服务器之JSP概述篇

  • 配置Eclpise+tomcat并实现JS…

  • JAVA/JSP学习系列之一(JDK安…

  • Q
    您现在的位置: 推销员 >> 网络营销 >> 网站建设 >> JSP代码学习 >> 文章正文
    Jsp&Servelet 学习笔记(1)
    Jsp&Servelet 学习笔记(1)
    作者:佚名 文章来源:www.top-sales.com.cn 点击数: 更新时间:2007-3-22     
    [ 字体:缩小 正常 放大 | 双击自动滚屏 ]
    请选择合适的字体颜色:
             boolean emptyEnum = false; 
            if (! paramNames.hasMoreElements( ))  
            emptyEnum = true;      
               //set the MIME type of the response, "text/html" 
            response.setContentType("text/html");    
             //use a PrintWriter to send text data to the client 
            java.io.PrintWriter out = response.getWriter( );    
             //Begin assembling the HTML content 
            out.println("<html><head>"); 
            out.println("<title>Submitted Parameters</title></head><body>");   
              if (emptyEnum)  ...{  
                    out.println(           "<h2>Sorry, the request does not contain any parameters</h2>");
              } else   ...{  
                            out.println(        "<h2>Here are the submitted parameter values</h2>");  
              }    
              while(paramNames.hasMoreElements( ))  ...{     
                      parName = (String) paramNames.nextElement( );    
                      out.println(            "<strong>" + parName + "</strong> : " +                request.getParameter(parName));   
                     out.println("<br />");  
              }//while     
             out.println("</body></html>");  
             }
     // doPos

    上一页  [1] [2] [3] [4] 下一页  

    文章录入:admin    责任编辑:admin 
  • 上一个文章:

  • 下一个文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    | 设为首页 | 加入收藏 | 联系站长 | 关于我们 | 友情链接 | 版权申明 |