当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 1. 和实例3NT-FAMILY: 宋体; mso-ascii-
 

 

 ·vc++.net学习笔记(第二章)    »显示摘要«
    摘要:第二章 the microsoft foundation class library application framework 微软应用程序基础框架类库 this chapter introduces the microsoft foundation class (mfc) library 7.0 application framework and explains its b......
 ·j2ee书籍    »显示摘要«
    摘要: 这些书有的早已被业界人士强烈推荐,成为掌握ejb的必读书籍,有的是实践j2ee的优秀工具书。 下面的每一本书的电子版(english)我都有,做j2ee项目的时候时不时温习一遍,做做笔记。这些书看看书名就让人兴奋,读起来让人畅快。1、core j2ee patterns - best practices and design strategies 介绍了j2ee的模式,我们知道一个j2ee项目成......


Servlet学习笔记(五)-----使用Servlet处理用户注册和登陆(使用了Cookie)
1.       与实例3差不多,唯一的区别是在loginform.java中多了对cookie的调用,当你注册号了之后,第一次登陆时会出现提示语”this is the first time you have logged on”,以后每次登录都会告诉你登陆的次数,当你登陆到第五次时会出现"congratulations!!!,you have a gife"

import javax.servlet.*; 【程序编程相关:JSP学习笔记(二)-----使用Tom

2.       loginform.java的代码如下: 【推荐阅读:Linux之父:学习对手的优点应得到鼓励

import java.io.*; 【扩展信息:ASP.NET中使用web.config

import javax.servlet.http.*;

import java.sql.*;

///import javax.sql.*;

 

public class loginform extends httpservlet

{

       connection dbcon;

      

       protected void dopost(httpservletrequest req,

                      httpservletresponse resp)

               throws servletexception,

                      java.io.ioexception

    {

          

           try

           {

                  class.forname("sun.jdbc.odbc.jdbcodbcdriver");

                  dbcon=drivermanager.getconnection("jdbc:odbc:test","sa","");

                  system.out.println("connection established");

           }

           catch(exception e)


...   下一页
 ·实现一个线程的两种方法    »显示摘要«
    摘要:实现一个线程的两种方法 山哥 http://blog.csdn.net 我们通过同一个例子,看线程的两种创建方法,以及运行方法 一种是声明 thread 的子类,重载 thread 类的方法 run public class mythread extends thread { public void run() { for (int count = 1, row = 1; row <......
» 本期热门文章:

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