最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(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
文件: 备注:
上传到/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
对于使用var关键字声明局部变量,编译器将根据表达式来推断变量的最终的数据类型;通过dynamic表达式或变量调用成员(字段、属性、方法委托等)时,编译器将生成特殊IL代码,这些代码被称为Payload代码。在运行时,Payload代码将根据dynamic表达式或变量所引用对象的确切类型来决定最终要...
分类:
其他好文 时间:
2014-06-11 07:40:41
阅读次数:
248
看了韩顺平的j2ee的视频后,吧里面教的做了出来,感觉好极了,新手上路!!!
这个肯定不是原创,但是也不是转载,那我就姑且把它作为翻译吧,给其他看视频学习但是没有代码的同学一点福利吧
首先是login.jsp的登陆界面代码。
<%
String path = request.getContextPath();
String basePath = request.getScheme()+":...
分类:
Web程序 时间:
2014-06-08 10:47:14
阅读次数:
258
基于上一篇文件上传发现效率很慢,我们应该对它进行优化 使用springMVC对文件上传的解析器来处理文件上传的时候需要在spring的applicationContext里面加上springMVC提供的MultipartResolver的申明这样客户端请求的时候 springMVC会检查request里面是否包含多媒体信息如果包含了就会使用MultipartResolver进行解析,spring...
分类:
编程语言 时间:
2014-06-08 09:43:54
阅读次数:
278
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