最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(JSP)输入用户名、真名和密码,Servlet接收后通过JDBC将信息保存到MySQL中。虽然是个简单的不能再简单的东西,但麻雀虽小,五脏俱全,在此做一归纳和整理。下面先上源码:一、index.jsp
<%
String path = request.getContextPath();
String basePath = request.g...
分类:
数据库 时间:
2014-06-29 07:24:04
阅读次数:
366
1、错误描述
六月 03, 2014 11:00:35 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expression nums is undefined on line 10, column 25 in list.ftl."
Expression nums is...
分类:
其他好文 时间:
2014-06-20 12:59:50
阅读次数:
229
1、错误描述
六月 04, 2014 10:31:47 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expected number, sequence, or string. maps evaluated instead to freemarker.core.Hash...
分类:
其他好文 时间:
2014-06-20 11:26:40
阅读次数:
303
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
问题:错误提示如下:Received exception processing
F:/apjp/apjp_remote_appengine/war\web-inf/appengine-web.xmlcom.google.apphosting.utils.config.appengineconfige...
分类:
移动开发 时间:
2014-06-20 08:56:07
阅读次数:
335
文件: 备注:
上传到/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
1、错误描述
六月 04, 2014 11:04:03 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Expression maps.key is undefined on line 15, column 25 in map.ftl."
Expression maps...
分类:
其他好文 时间:
2014-06-07 13:59:28
阅读次数:
298
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