今天是: | 首页 | 营销咨讯 | 推销技巧 | 网络营销 | 论文大全 | 外贸知识 | 市场信息 | 留言咨询 | 论坛 |
最 新 文 章
普通文章解读二八理论和长尾理论在…
普通文章雅虎倒向谷歌被反垄断部门…
普通文章网络视频营销漫路求索
普通文章涂料是否适合网络营销
普通文章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     
    [ 字体:缩小 正常 放大 | 双击自动滚屏 ]
    请选择合适的字体颜色:
            out.println("<title>Help Page</title></head><body>"); 
            out.println("<h2>Please submit your information</h2>");   
        //make sure method="post" so that the servlet service method
        //calls doPost in the response to this form submit 
             out.println(        "<form method="post" action ="" + request.getContextPath( ) +            "/firstservlet" >"); 
             out.println("<table border="0"><tr><td valign="top">"); 
             out.println("Your first name: </td> <td valign="top">"); 
             out.println("<input type="text" name="firstname" size="20">"); 
             out.println("</td></tr><tr><td valign="top">"); 
             out.println("Your last name: </td> <td valign="top">"); 
             out.println("<input type="text" name="lastname" size="20">"); 
             out.println("</td></tr><tr><td valign="top">"); 
             out.println("Your email: </td> <td valign="top">"); 
             out.println("<input type="text" name="email" size="20">"); 
             out.println("</td></tr><tr><td valign="top">"); 
             out.println("<input type="submit" value="Submit Info"></td></tr>"); 
             out.println("</table></form>");    out.println("</body></html>");   
       }
    //doGet
        public void doPost(HttpServletRequest request,     HttpServletResponse response) throws ServletException,    java.io.IOException   ...{    
        //display the parameter names and values 
            Enumeration paramNames = request.getParameterNames( );  
            String parName;
           //this will hold the name of the parameter   

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

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

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