自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(78)
  • 收藏
  • 关注

原创 jsp学习笔记

<TABLE border="value" width="value" height="value" bordercolor="value" bgcolor="value" background="value" cellspacing="value" cellpadding="value"align="value&qu

2010-12-03 13:46:20 103

原创 jsp学习笔记

<HTML><HEAD><SCRIPT language = "JavaScript">document.write("欢迎来到 JavaScript 世界");</SCRIPT></HEAD><BODY><P>尽情享受学习的快乐!!! &am

2010-11-26 20:40:56 84

原创 jsp学习笔记

<filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>net.vschool.web.CharacterEncodingFilter</filter-class> <init-para...

2010-11-26 20:38:31 82

原创 123

<%@ page contentType="text/html;charset=GB2312" %><%@ page import="java.util.*" %><%@ page import="model.*" %><HTML><BODY><%if(session.get

2010-11-18 21:04:53 77

原创 123

package servlet;import java.util.ArrayList;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http....

2010-11-18 21:00:37 102

原创 123

Pagenumber.javapackage model;public class Pagenumber { int rowCount=1; //总的记录数。 int pageSize=1, //每页显示的记录数。 showPage=1, //设置欲显示的页码数。 pageCount=1; //分页之后的总页数。 public Pagenumber(){} ...

2010-11-18 20:56:34 169

原创 123

public int rowCount(String tablename){ conn = DBConnection.getConn(); int num=0; try { st=conn.createStatement(); rs= st.executeQuery("select count(*) from "+ tablename); rs.next();//...

2010-11-18 20:53:18 76

原创 123

<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd

2010-11-18 20:34:00 67

原创 123

package cn.net.nit.mvcDemo.bean;public class ArticlePublish {public boolean publish(String title, String content) {if (title.equals("")) { return false; } System.out.println("title = " + ...

2010-11-18 20:31:59 72

原创 123

package cn.net.nit.mvcDemo.servlet;import java.io.IOException;import javax.servlet.RequestDispatcher;import javax.servlet.ServletException;import javax.servlet.http.HttpServlet;import javax....

2010-11-18 20:31:06 72

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); PreparedStatement preparedStatement = null; ResultSet resultSet = null; ParameterMetaData param...

2010-11-18 20:27:09 98

原创 java

 public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; ResultSetMetaData resultSetMetaData = n...

2010-11-18 20:24:29 84

原创 123

<%@ page language="java" contentType="text/html; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd&q

2010-11-18 20:23:46 92

原创 java

  public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; DatabaseMetaData d...

2010-11-18 20:22:57 83

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; try { statement =connection.createS...

2010-11-18 20:18:19 97

原创 123

package servlet;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.RequestDispatcher;import javax.servlet.ServletException;import javax.servlet.http.*;import shop.c...

2010-11-18 20:16:30 79

原创 123

package servlet;import java.io.IOException;import java.io.PrintWriter;import javax.servlet.RequestDispatcher;import javax.servlet.ServletException;import javax.servlet.http.*import shop.ca...

2010-11-18 20:15:38 83

原创 123

<%@ page contentType="text/html;charset=GB2312" %><%@ page import="shop.*"%><%@page import="java.util.*" %> <html> <body> <% car car1=(

2010-11-18 20:14:52 80

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; try { statement=connection.createSt...

2010-11-18 20:14:27 69

原创 123

<%@ page contentType="text/html;charset=GB2312" %><html> <body> <p>网上书斋 <table border> <tr> <td>序号</td><td

2010-11-18 20:13:59 84

原创 123

<%@page contentType="text/html;charset=GB2312" %><HTML><BODY BGCOLOR=cyan><FONT Size=5> <%=(String)request.getAttribute("result") %> </BODY>

2010-11-18 20:12:21 58

原创 123

package servlet; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet;...

2010-11-18 20:11:26 55

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; try { statement = connection.cre...

2010-11-18 20:10:56 62

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; try { statement = connection.cre...

2010-11-18 20:10:12 100

原创 9.2 在MVC模式中应用JDBC

<%@ page contentType="text/html;charset=GB2312" %> <HTML> <BODY bgcolor=pink ><Font size=5> <FORM action="LogServlet" Method="post"> <BR&

2010-11-18 20:09:58 144

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); CallableStatement callableStatement = null; ResultSet resultSet = null; int isResultSet; tr...

2010-11-18 20:07:05 56

原创 java

stmt.executeUpdate("insert into tb_name (col1,col2,col2,col4) values (‘"+var1+"‘,‘"+var2+"‘,"+var3+",‘"+var4+"‘)"); perstmt = con.prepareStatement("insert into tb_name (col1,col2,col2,col4) va.

2010-11-18 20:06:25 55

原创 123

<%@ page contentType="text/html;charset=GB2312" %><%@ page import="java.util.*"%><html><body> <h2>JspSession Page</h2> 会话标识:<%=session.

2010-11-18 20:06:16 47

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); PreparedStatement preparedStatement = null; ResultSet resultSet = null; int isResultSet; try...

2010-11-18 20:05:16 59

原创 123

<%@ page contentType="text/html;charset=GB2312" %><HTML><BODY bgcolor=cyan><FONT Size=1> <% int count=((Integer)session.getAttribute("count")).intValue(); int

2010-11-18 20:05:02 48

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; int[] rowCount ; try { statement...

2010-11-18 20:04:26 52

原创 123

<%@ page contentType="text/html;charset=GB2312" %><HTML><BODY bgcolor=cyan><FONT Size=5> <BR> <P>所猜的数比实际的数大,请再猜: <FORM action="result.jsp

2010-11-18 20:03:33 55

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; int[] rowCount ; try { statement...

2010-11-18 20:03:09 60

原创 123

<%@ page contentType="text/html;charset=GB2312" %><HTML><BODY bgcolor=cyan><FONT Size=5> <BR> <% String str=request.getParameter("boy"); if(str=

2010-11-18 20:02:20 58

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; int rowCount; boolean isResultSet;...

2010-11-18 20:02:08 59

原创 123

<%@ page contentType="text/html;charset=GB2312" %><HTML><BODY bgcolor=cyan><FONT Size=1><P>随机分给了你一个1到100之间的数,请猜! <% int number=(int)(Math.random()..

2010-11-18 20:00:56 47

原创 java

public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = null; ResultSet resultSet = null; int rowCount ; try { statement ...

2010-11-18 20:00:52 72

原创 123

<%@ page contentType="text/html;charset=gb2312"%><%@ page import="java.util.*;"%><html><head> <title>session对象示例</title></head>

2010-11-18 19:59:31 59

原创 java

JDBCTest.java import DAO.*; import sql.*; public class JDBCTest{ public static void main(String[] args) { Connection connection = DBConnection.getConn(); Statement statement = nul...

2010-11-18 19:58:38 72

原创 java

public class TestJDBC{ public static void main(String[] args) { DBConnection.getConn(); DBConnection.close(); }} 

2010-11-18 19:57:37 60

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除