最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(JSP)输入用户名、真名和密码,Servlet接收后通过JDBC将信息保存到MySQL中。虽然是个简单的不能再简单的东西,但麻雀虽小,五脏俱全,在此做一归纳和整理。下面先上源码:一、index.jsp
<%
String path = request.getContextPath();
String basePath = request.g...
分类:
数据库 时间:
2014-06-29 07:24:04
阅读次数:
366
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
在创建一个job后,就要开始job的运行,运行的全流程如下:
1、在界面上启动job
2、index.jsp
查看上述页面对应的源代码
Start
3、action.jsp
String sAction = request.getParameter("action");
if(sAction != null)
{
// Need ...
分类:
其他好文 时间:
2014-06-20 09:24:23
阅读次数:
272
文件: 备注:
上传到/WEB-INF/upload之后,文件名是乱码解决办法:UploadForm.reset()中添加代码: try {
request.setCharacterEncoding("U...
分类:
Web程序 时间:
2014-06-11 21:58:55
阅读次数:
222
/** * ajax responseTEXT write; * @param request *
@param response * @param str */ public static void response(HttpServletReque...
分类:
Web程序 时间:
2014-06-11 11:35:20
阅读次数:
226
/*** * 获取客户端IP * @param request * @return */
public static String getIpAddrByRequest(HttpServletRequest request) { String
ip...
分类:
其他好文 时间:
2014-06-11 11:11:05
阅读次数:
173
#ifndef __HTTP_REQUEST_H__#define
__HTTP_REQUEST_H__#include "cocos2d.h"#include
"ExtensionMacros.h"NS_CC_EXT_BEGINclass CCHttpClient;class CCHttpResp...
分类:
其他好文 时间:
2014-06-11 07:57:36
阅读次数:
310
default character encoding of the request or
response body: If a character encoding is not specified, the Servlet
specification requires that an enco....
分类:
其他好文 时间:
2014-06-08 00:19:22
阅读次数:
270
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
From
:http://blog.csdn.net/hotdigger/article/details/6456240一般我们都用$_POST或$_REQUEST两个预定义变量来接收POST提交的数据。但如果提交的数据没有变量名,而是直接的字符串,则需要使用其他的方式来接收。方法一:
使用全局变量...
分类:
Web程序 时间:
2014-06-07 11:29:34
阅读次数:
221