在项目中有一个新增客户信息的的功能:
1、在进入添加页面:add.jsp页面之前,要调用一个add_init.do来获取省份信息列表以供在add.jsp进行选择。
2、add页面填写完成以后,提交给addCustomer.do来进行数据库的操作,
在提交之前,要进行一次表单验证,用了STRUTS2的validation。
/parkassist/ad...
分类:
其他好文 时间:
2014-06-03 04:11:19
阅读次数:
231
创建主键时,所对应的列如果没有索引,数据库默认会自动创建一个索引;如果对于列有索引,那么创建主键不会再创建索引。这里要注意,列值必须满足主键的要求(唯一,非空),简单测试如下:
SQL> create table wxlun_pri(a number);
Table created.
SQL> alter table wxlun_pri add constraint PR...
分类:
其他好文 时间:
2014-06-03 01:03:46
阅读次数:
208
【题目】原文:1.3 Design an algorithm and write code
to remove the duplicate characters in a string without using any additional
buffer. NOTE: One or two add...
分类:
其他好文 时间:
2014-06-02 21:32:04
阅读次数:
284
mAlloc proc nSize:dword add nSize,4 invoke
GlobalAlloc,GMEM_ZEROINIT or GMEM_FIXED,nSize .if eax==0 invoke
MessageBox,NUL...
分类:
其他好文 时间:
2014-06-02 08:38:50
阅读次数:
267
1,能够用route命令暂时改动:route add default gw 2,
通过改动/etc/sysconfig/network 文件永久改动:脚本:#!/bin/sh#configure default gw# $1 is ip of
gatewaydefgw=$1sed -i "s/NET...
分类:
其他好文 时间:
2014-06-02 02:11:10
阅读次数:
270
UIScrollView:常用属性@property(nonatomic)
UIEdgeInsets contentInset; // default UIEdgeInsetsZero. add additional scroll
area around content@prop...
分类:
移动开发 时间:
2014-06-01 23:53:28
阅读次数:
505
iOS7刚发布的时候,总是出现这个 Can't add self as subview 的崩溃,团队内部没出现过,但是外部用户的crash频频上报这个崩溃。
异常描述和崩溃堆栈是这样的:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't add se...
分类:
其他好文 时间:
2014-06-01 17:32:08
阅读次数:
489
You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a single ...
分类:
其他好文 时间:
2014-06-01 17:05:44
阅读次数:
296
当Cordova
程序打包并安装到手机中后,我们会发现启动程序时,会有数秒的黑屏现象,常见的解决方法则是设置闪屏后面。这里以 Android
程序为例,介绍Cordova设置启动画面的方法。1. 添加动画闪屏支持打开cmd,进入项目目录下,执行命令:cordova plugin add
org.ap...
分类:
其他好文 时间:
2014-06-01 11:27:00
阅读次数:
292
add_months(trunc(to_date('2013','yyyy') ,'yyyy'),12)-1 2013年最后一天
trunc(to_date('2013','yyyy') ,'yyyy') 2013年第一天
5月的最后一天
select last_day(to_date('2013-05','yyyy-mm')) d from dual...
分类:
数据库 时间:
2014-06-01 00:07:37
阅读次数:
345