学海无涯

记录我的程序人生...

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2005年3月16日

摘要: 1, mysql安装时设置字符集utf-8, jdbc驱动3.0.15以上. 2. hibernate配置文件中,加上属性 true UTF-8 3. web.xml设置Filter ================================================= SetWebApplicationCharacterEncoding ... 阅读全文
posted @ 2005-03-16 12:03 josson 阅读(4144) 评论(1) 推荐(0) 编辑

2005年2月21日

摘要: 在配置文件中定义query xml: code Query query = session.getNamedQuery("on... 阅读全文
posted @ 2005-02-21 13:25 josson 阅读(829) 评论(0) 推荐(0) 编辑

摘要: hibernate查询方式举例 1 单个对象 a) Query query=session.createQuery("from ConsortBean a where a.person.id=?"); query.setString(0,pb.getId());//参数从零开始 List list=query.list(); b) Query query=session.crea... 阅读全文
posted @ 2005-02-21 13:24 josson 阅读(9503) 评论(2) 推荐(0) 编辑

2005年1月14日

摘要: SQLServer: SELECT * FROM ( SELECT TOP(PageSize) * FROM ( SELECT TOP (PageSize * PageIndex) * FROM Articles ORDER BY id DESC ) ORDER BY id ASC ) O... 阅读全文
posted @ 2005-01-14 17:48 josson 阅读(605) 评论(0) 推荐(0) 编辑

2004年9月16日

摘要: http://www.c-sharpcorner.com/DirectoryServices.asphttp://www.dotnet247.com/247reference/System/DirectoryServices/DirectoryEntry.aspxhttp://blog.joycode.com/liuhuimiao/posts/20946.aspx 阅读全文
posted @ 2004-09-16 09:52 josson 阅读(490) 评论(0) 推荐(0) 编辑

摘要: using System; using System.DirectoryServices; namespace SystemFrameworks.Helper { /// /// 活动目录辅助类。封装一系列活动目录操作相关的方法。 /// public sealed class ADHelper { /// ... 阅读全文
posted @ 2004-09-16 09:44 josson 阅读(1890) 评论(1) 推荐(0) 编辑

2004年9月9日

摘要: 打开SPS虚拟站点的根目录下的web.config文件,找到下面这行: 将其修改为: 提示:WebPart在默认的安全等级下是无法访问SharePoint Object Model的(即无法通过WSS SDK来访问SPS站点中的列表、文档库、文档、用户等信息、AD),为了让我们的WebPart能正常工作,我们可以:★ 为这个WebPart创建一个单独的Policy文件★ 将WebPart的(.d... 阅读全文
posted @ 2004-09-09 15:32 josson 阅读(754) 评论(1) 推荐(0) 编辑

摘要: http://www.sdgn.nl/Default.asp?A1PID=57PDGUH&A1SID=229854200434&URL=154106PDWL Inleiding Web Part development Met Microsoft SharePoint Portal Server kun je portal-oplossingen ontwikkelen waarin kennis... 阅读全文
posted @ 2004-09-09 14:10 josson 阅读(1762) 评论(2) 推荐(0) 编辑

摘要: SharePoint主页:http://www.microsoft.com/sharepoint/SharePoint Portal Server主页:http://www.microsoft.com/office/sharepoint/prodinfo/default.mspx SharePoint Service和SharePoint Portal Server有什么区别:http://www... 阅读全文
posted @ 2004-09-09 14:04 josson 阅读(1747) 评论(1) 推荐(0) 编辑

摘要: //增加用户string dom ="LDAP://intdomain.com/CN=Users,DC=intdomain,DC=com"; System.DirectoryServices.DirectoryEntry entry1 = new System.DirectoryServices.DirectoryEntry(dom); DirectoryEntries myEntries = e... 阅读全文
posted @ 2004-09-09 14:02 josson 阅读(778) 评论(0) 推荐(0) 编辑