1)程序简单,引用几个关键处理即可:
#coding=utf-8
#!/usr/bin/python
# CGI处理模块
from os import environ
import cgi, cgitb
# 创建 FieldStorage 的实例化
form = cgi.FieldStorage()
# 获取数据
user_id ="a";
password="b";...
分类:
编程语言 时间:
2015-02-03 15:08:29
阅读次数:
220
使用session会话传值并重定向页面 //得到用户提交的值 String name = request.getParameter("username"); String pwd = request.getParameter("password"); //创建HttpSessio对象 HttpSe....
分类:
Web程序 时间:
2015-02-03 06:57:45
阅读次数:
167
# _*_ coding: cp936 _*_ //支持中文格式import sys import getpass#admin configurationusername='cheeron'password='1234'counter = 0 #认证登录while True: if coun...
分类:
编程语言 时间:
2015-02-02 22:49:46
阅读次数:
270
mongodb的导入/导出/备份/还原1.mongoexport是mongo自带的数据导入工具,使用方法比较简单,以下是mongoexport常用的几个参数.[root@localhostadmin]#mongoexport--help-h[--host]#主机ip--port#端口-u[--username]#验证用户名-p[--password]#验证密码--authenticationDatabase#..
分类:
数据库 时间:
2015-02-02 19:58:19
阅读次数:
313
一、单个对象生成xml生成以下xml,该怎么生成呢? 1 123456 传说之美 2015-02-02 11:50:42先定义一个account类,属性有id、name、password、createDate。public class Account { private String ...
分类:
移动开发 时间:
2015-02-02 19:50:25
阅读次数:
116
为何使用JNDI数据源
如果用java直接连接:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@localhost:1521:orcl";
Connection conn= DriverManager.getConnection(url,user,password);
也是可以的,但是这样没有连接池的概念,每次连接都得重新创建,使用完毕必须记得断开,...
分类:
其他好文 时间:
2015-02-02 18:19:07
阅读次数:
167
1>在Action类中定义表单属性如,登陆表单login.jsp:User:Password:在Action中定义两个属性private String username;private String password;提供setter,getter方法。即可接收到表单传过来的参数. 这种接收参数的方...
分类:
其他好文 时间:
2015-02-02 17:56:24
阅读次数:
298
1、EditText输入的文字为密码形式的设置(1)通过.xml里设置:把该EditText设为:android:password="true"// 以”.”形式显示文本(2)在代码里设置:通过设置EditText的setTransformationMethod()方法来实现隐藏密码或这显示密码。e...
分类:
移动开发 时间:
2015-02-02 17:27:30
阅读次数:
549
1.前端提交form之前call后台,要求获得publicKey的相关参数。 2.后台生成密钥对,把privateKey存在session, 把publicKey的modulus和exponent返回前台。 3.前台用publicKey对password加密,大致流程: var rsaKey...
分类:
其他好文 时间:
2015-02-02 16:16:41
阅读次数:
621
一、基本查询,忘记密码查询>showdatabaseslike‘mysql‘;>showdatabaseslike‘%my%‘;//查询包含my的databases设置密码#mysqladmin-urootpassword‘passwd‘;修改密码#mysqladmin-uroot-p‘passwd‘password‘newpasswd‘;>setpassword=password(‘passwd‘);忘记root密码#mysqld..
分类:
数据库 时间:
2015-02-02 16:10:53
阅读次数:
262