最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(JSP)输入用户名、真名和密码,Servlet接收后通过JDBC将信息保存到MySQL中。虽然是个简单的不能再简单的东西,但麻雀虽小,五脏俱全,在此做一归纳和整理。下面先上源码:一、index.jsp
<%
String path = request.getContextPath();
String basePath = request.g...
分类:
数据库 时间:
2014-06-29 07:24:04
阅读次数:
366
【题目】
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ 4 8
/ / 11 13 4
...
分类:
其他好文 时间:
2014-06-20 10:53:08
阅读次数:
181
题目
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary t...
分类:
其他好文 时间:
2014-06-07 15:31:32
阅读次数:
179
static void Main(string[] args)
{
//string path = @"LDAP://CN=sp\administrator";
string username = "administrator";
string password = "6yhn^YHN";
...
分类:
其他好文 时间:
2014-06-07 15:20:59
阅读次数:
275
【题目】
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum = 22,
5
/ ...
分类:
其他好文 时间:
2014-06-07 13:57:37
阅读次数:
210
题目
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.
For example:
Given the below binary tree and sum
= 22,
5
...
分类:
其他好文 时间:
2014-06-07 13:47:22
阅读次数:
191
By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23.
3
7 4
2 4 6
8 5 9 3
That is, 3 + 7 + 4 + 9 = 23.
Find th...
分类:
其他好文 时间:
2014-06-07 13:45:25
阅读次数:
189
Tomcat 启动报
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
提示的解决办法:...
分类:
其他好文 时间:
2014-06-07 13:08:51
阅读次数:
309
对于工作空间中变量的保存和载入可以使用save和load命令,详细的使用方法通过help指令获取(helpsave,helpload)。?两条指令最常用的情况为:1、%保存整个工作空间至指定的mat文件FILE_PATH_NAME,如E:workspace.mat%若已经存在同名的mat文件,该文件...
分类:
其他好文 时间:
2014-06-07 09:28:06
阅读次数:
260
php composer.phar create-project
symfony/framework-standard-edition path/
2.2.1第一个参数PHP为本地PHP开发环境,指向PHP运行命令。第二个参数,为composer.phar方式下载。第三个参数,为动作命令,例如cre...
分类:
其他好文 时间:
2014-06-07 06:15:58
阅读次数:
199