预览模式: 普通 | 列表

垃圾广告请走开

真他妈的郁闷,每次都有好些垃圾广告.......

查看全部...

标签:

分类:java | 固定链接 | 评论: 2 | 查看次数: 179

java.lang.RuntimePermission accessDeclaredMembers

// ========== WEB APPLICATION PERMISSIONS =====================================


// These permissions are granted by default to all web applications
// In addition, a web application will be given a read FilePermission
// and JndiPermission for all files and directories in its document root.
...

查看全部...

标签:

分类:java | 固定链接 | 评论: 0 | 查看次数: 327

Ant之junit测试

<?xml version="1.0" encoding="UTF-8"?>
<project name="PaslaTest" default="sampleTest" basedir="./">
<patternset id="test.pattern">
<include name = "jp/co/ntt/ansl/picax/acc/acccommon/util/CommonInformationTes...

查看全部...

标签:

分类:java | 固定链接 | 评论: 3 | 查看次数: 692

Struts之Validator框架的应用

很好很强大
以下内容为本人练习项目中摘出来的
struts-config.xml配置如下
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames" value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml" />
</plug...

查看全部...

标签:

分类:java | 固定链接 | 评论: 0 | 查看次数: 495

JSP之下拉框显示(struts1.2.9)

stmt = conn.prepareStatement("select * from PjMgr_TypeItem where listTypeId=10");
rs = stmt.executeQuery();
while(rs.next())
{
myList.add(new LabelValueBean(rs.getString("name"),rs.getString("id")));
}


stateList=getList("PjMgr_TypeItem","...

查看全部...

标签:

分类:java | 固定链接 | 评论: 6 | 查看次数: 697

JSP之下拉框层次显示

主要算法:
protected static void setTree(ResultSet rs,int id,String head)
{
try {
rs.last();
int row =rs.getRow();//求记录数
for(int i=1;i<=row;i++)
{
rs.absolute(i);//ResultSet指针跳转
if(rs.getInt(3)==id)
{
String nHead = "";
if(rs.getInt(3)==0...

查看全部...

标签:

分类:java | 固定链接 | 评论: 4 | 查看次数: 532

jdk之native2ascii用法

由于jdk自带了native2ascii.exe转码器,用起来很方便啦!dos下运行就OK啦!
1. native2ascii -encoding xx(例如:utf-8) 源文件(例如:ApplicationResources.properties) 目标文件(例如:cn.properties)
这句的意思就是说将源文件转换成xx(例如:utf-8)格式的文件

2. native2ascii -reverse -encoding xx(例如:utf-8) 源文件(例如:ApplicationResources.properties) 目标文件(例如:cn.properties) ...

查看全部...

标签:

分类:java | 固定链接 | 评论: 6 | 查看次数: 922

access-vba这弹出对话框(限制后缀)

Dim myDialog As FileDialog
Set myDialog = Application.FileDialog(msoFileDialogFilePicker)

With myDialog
.Filters.Clear
.AllowMultiSelect = False
//只加入了两种后缀的
.Filters.Add "Excel形式", "*.xls", 1
.Filters.Add "CSV形式", "...

查看全部...

标签:

分类:access-vba | 固定链接 | 评论: 1 | 查看次数: 647

access-vba之文件(.xls;.csv)操作

1.xls文件读取
Dim rs As New ADODB.Recordset
Dim strSQL As String
strSQL = "DBQ=" & filePath & ";driver=Microsoft Excel Driver (*.xls)"
rs.Open "SELECT * FROM [Sheet1$]", strSQL, adOpenKeyset, adLockOptimistic
Set DataGrid1.DataSource = rs //数据与datagrid绑定
Set rs = Noth...

查看全部...

标签:

分类:Linux | 固定链接 | 评论: 3 | 查看次数: 1863

linux之cvs服务器配置

  1.查看是否安装cvs
   rpm -qa|grep cvs
   一般安装在/usr/bin/cvs,如果未安装,到www.cvshome.org下载一个最新的rpm安装即可
   rpm -ivh cvs-1.11.2-10.i386.rpm

  2.建立cvs用户组,便于管理cvs用户
   groupadd cvs

  3.建立cvs组的cvsroot用户和所属的目录
   useradd cvsroot -g cvs

  4.为cvsroot用户添加密码
   passwd cvsroot

  5.改变/home/cvsroot的目录属性
...

查看全部...

标签:

分类:Linux | 固定链接 | 评论: 0 | 查看次数: 585

RedHat4之GNU Radius源码安装

GNU Radiusのインストール作業

以下に参照して下さい

がダウンロードできます。
radius-1.5.tar.gzがLinuxで/usr/localにコピーして、それで解凍し、以下を実行します。

[root@localhost local]# tar zxvf radius-1.5.tar.gz
[root@localhost local]# cd radius-1.5

インストールの際に、MySQLのライブラリの場所などを指定します。
[...

查看全部...

标签:

分类:Linux | 固定链接 | 评论: 11 | 查看次数: 1072

Linux之mySQL源码安装

shell> groupadd mysql
shell> useradd -g mysql mysql

shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install

shell> cp support-files/my-mymedium.cnf /etc/my.cnf
shell&...

查看全部...

标签:

分类:.net | 固定链接 | 评论: 0 | 查看次数: 1025

Crystal Reports 水晶报表

try
{
//create a new ReportDocument object
ReportDocument rdPublishers = new ReportDocument();

//load the Publishers.rpt into rdPublishers
//using Path.GetFullPath(".") returns the current
//application directory where the report is located
String str=Ap...

查看全部...

标签:

分类:.net | 固定链接 | 评论: 2 | 查看次数: 1466

JDBC连Oracle数据库

String driverName = "oracle.jdbc.driver.OracleDriver";
String url = "jdbc:oracle:thin:@172.28.139.78:1521:oracts";
String userName = "Scott";
String password = "tiger";
try {

Class.forName(driverName).newInstance();
Connection...

查看全部...

标签:

分类:java | 固定链接 | 评论: 1 | 查看次数: 1308

存储过程之妙用

string ConnectionString = "Data Source=oracts;user=bugdr;password=bugdr;";//写连接串
OracleConnection conn = new OracleConnection(ConnectionString);//创建一个新连接

try
{
conn.Open();
OracleCommand cmd = co...

查看全部...

标签:

分类:.net | 固定链接 | 评论: 0 | 查看次数: 958