最近看老罗视频,做了一个简单的用户注册系统。用户通过网页(JSP)输入用户名、真名和密码,Servlet接收后通过JDBC将信息保存到MySQL中。虽然是个简单的不能再简单的东西,但麻雀虽小,五脏俱全,在此做一归纳和整理。下面先上源码:一、index.jsp
<%
String path = request.getContextPath();
String basePath = request.g...
分类:
数据库 时间:
2014-06-29 07:24:04
阅读次数:
366
如果myeclipse 报如下错误A cycle was detected in the
build path of
project如果我们的项目包含多个工程(project),而它们之间又是循环引用的关系,那么Eclipse在编译时会抛出如下一个错误信息:“A cycle
was detected...
分类:
编程语言 时间:
2014-06-20 08:57:36
阅读次数:
525
我现在是这么画的,class A { private GeometryGroup
_lines; private Path _path; public A() { _path.Data = _lines; } public Draw() {
LineGeometry line = new LineG...
分类:
其他好文 时间:
2014-06-11 23:48:13
阅读次数:
1241
原文:【Vegas原创】Mysql绿色版安装方法所谓的绿色版,就是没有installer的MySQL,完全需要靠人工来操作,好处是,重装系统后,只要再做一次本次配置,即可使用。
具体操作方法: 1,设置系统环境变量, 在Path中添加 D:\mysql\bin 2,修改my-small.ini文件内...
分类:
数据库 时间:
2014-06-11 22:04:35
阅读次数:
344
Jenkins的job->build 支持Ant,maven,windows
batch和Shell,
但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。例如:
下面执行windows batch 和pytho...
分类:
编程语言 时间:
2014-06-11 10:03:49
阅读次数:
296
java 安装与设置1. 安装 jdk2. 设置执行路径 unix: set
path=(/usr/local/jdk/bin $path) ( 在~/.cshrc文件里增加) linux: export
PATH=/usr/local/jdk/bin:$PATH (在 ~/.bashrc 或 ~/...
分类:
编程语言 时间:
2014-06-11 08:21:47
阅读次数:
319
下载到开源项目后,我们还是希望导入到eclipse中还看,这样要方便点,一般的步骤是这样的打开源代码目录,如果看到里面有.calsspath
.project文件,那么说明这个项目本来就是eclipse开发的,那么在eclipse中->文件->导入->已存在的项目如果看到你们有build.xml,
...
分类:
系统相关 时间:
2014-06-11 07:21:39
阅读次数:
333
题目
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
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