最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(JSP)输入用户名、真名和密码,Servlet接收后通过JDBC将信息保存到MySQL中。虽然是个简单的不能再简单的东西,但麻雀虽小,五脏俱全,在此做一归纳和整理。下面先上源码:一、index.jsp
<%
String path = request.getContextPath();
String basePath = request.g...
分类:
数据库 时间:
2014-06-29 07:24:04
阅读次数:
366
C:\ProgramData\MySQL
这里还有MySQL的文件,必须要删除
注意:Application Data这个文件夹是隐藏的,需要打开个文件夹选择菜单栏 工具→文件夹选项→查看→隐藏文件和文件夹 一项选上 显示所有文件和文件夹 确定...
分类:
数据库 时间:
2014-06-20 13:16:18
阅读次数:
255
// CommonInject.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include
#include
using namespace std;
#include
#pragma comment(li...
分类:
编程语言 时间:
2014-06-20 13:09:49
阅读次数:
306
??
1.Application
Application 是封装 WPF 特定功能的类,包括:
应用程序生存期: Activated,
Current,
Deactivated,
DispatcherUnhandledException,
Exit,
Run,
SessionEnding,
Shutdown,
ShutdownMode,
Startup。
应用...
分类:
移动开发 时间:
2014-06-20 11:48:07
阅读次数:
634
Server Error in '/myapp' Application.Parser ErrorDescription: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error deta...
分类:
Web程序 时间:
2014-06-20 11:15:55
阅读次数:
279
接前文的注册模块,本篇是登录模块。主要包括登录主界面,和登录相关编写的LoginAction、LoginDao和LoginService。以及配置的Filter。下面按逻辑顺序记录详细过程和代码:一、在前文的index目录点击登录按钮后,通过javascript跳转至LoginAction。
function login(){
var th = document.form1;
if(...
分类:
数据库 时间:
2014-06-20 10:53:49
阅读次数:
385
方式一:采用RequestDispatcher进行
package cn.jbit.download.servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.Http...
分类:
Web程序 时间:
2014-06-20 09:09:44
阅读次数:
347
问题:The javascript to java bridge on 2.3
Gingerbread is causing crashes. This is 100% reproducible using the WebViewDemo
application from here: http:/....
分类:
移动开发 时间:
2014-06-20 08:53:36
阅读次数:
320
Sub 月汇总() Dim MyPath, MyName, AWbNameDim Wb As
Workbook, WbN As StringDim G As LongDim num As Long Application.ScreenUpdating =
FalseMyPath = ActiveW....
分类:
其他好文 时间:
2014-06-11 21:56:24
阅读次数:
398
JSP中一共预先定义了9个这样的对象,分别为:request、response、session、application、out、
pagecontext、config、page、exception
1、request对象
request 对象是 javax.servlet.httpServletRequest类型的对象。 该对象代表了客户端的请求信
息,主要用于接受...
分类:
Web程序 时间:
2014-06-07 13:36:24
阅读次数:
161