- 浏览: 128230 次
- 性别:
- 来自: 中国安徽
-
最新评论
-
泰山07:
谢谢,正急需呢
利用myeclipse生成Hibernate Mapping文件 -
highfly-s:
很不错,但定位比较麻烦
可输入的下拉列表 -
madbluesky:
不错 字数.exe
可输入的下拉列表 -
iceworld4143:
不错呀~
javaScript通用数据类型校验 -
hdljavaeye:
请问楼主一下:cell.setCellValue(((List ...
利用poi生成excel表格
文章列表
子窗体向父窗体传值
子窗体向父窗体传值
父窗体:
<script>
function fortable1()
{
/****弹出模式对话框*****/
path = & ...
非模式的,弹出窗体父窗体可以获得焦点
<html:button property="maQd_submit" onclick="window.open('/SEERP/gtCydwLoad.do','','height=900,width=1000,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=yes')">确定</html:button>
模式的,弹出窗体父窗体不可以获得焦点
path = "/SEERP/gtJsrLoad.do";
...
——getParameter得到的都是String类型的。或者是http://a.jsp?id=123中的123,或者是某个表单提交过去的数据。
——getAttribute则可以是对象。
——getParameter()是获取POST/GET传递的参数值;
——getAttribute()是获取对象容器中的数据值;
——getParameter:用于客户端重定向时,即点击了链接或提交按扭时传值用,即用于在用表单或url重定向传值时接收数据用。
——getAttribute:用于服务器端重定向时,即在sevlet中使用了forward函数,或struts中使用了mapping.findForwa ...
C:\System Volume Information\_restore{5C70C6CE-B892-47B9-9AB7-9F8987BE19C9}
- 2006-12-21 11:03
- 浏览 848
- 评论(0)
以前在安装sql的时候,如此提示,我只要重新启动即可,可是今天重新启动了N次计算机,问题却丝毫没有解决,依然提示这样的话。“以前的某个程序安装已在安装计算机上创建挂起的文件操作。运行安装程序之前必须重新启动计算机。” 只好google以下,最终得知是安装程序在先前的安装过程中在系统注册表留下某些信息,导致不能安装。于是经过多次试,发现删除掉如下键值信息即可安装:
在运行窗口输入regedit,打开注册表编辑器,在HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager中找到PendingFileRenameOperati ...
- 2006-12-16 14:50
- 浏览 1549
- 评论(0)
<html:select name="ActionForm" property="country">
<html:options collection="vector" property="value(bean)" labelProperty="name(bean)"/>
</html:select>
- 2006-12-13 20:29
- 浏览 1516
- 评论(0)
public static boolean isValidMain(String email)
{
String pattern3="\\w*@{1}[\\w&&[^_]][\\w\\.]*\\w";
String pattern4=".*\\.\\..*";
return Pattern.matches(pattern3,email) && !Pattern.matches(pattern4,email);
}
- 2006-12-13 14:34
- 浏览 1156
- 评论(0)
java.sql.Date d = new java.sql.Date(System.currentTimeMillis());
- 2006-12-13 13:54
- 浏览 7535
- 评论(0)
在hibernate中,每个数据表对应的其实是一个实体类,每个实体类有一个对应的hbm.xml配置文件和你匹配,myeclipse中其实有个MyEclipse Database Explorer视图,它提供了myeclipse与数据库直接连接的内置窗口,并且通过此窗口可以生成hibernate的mapping文件。
1.在项目上点击右键选择MyEclipse选项,为应用增加Hibernate特性.
2.在出现的配置窗口中,选中“Add Hibernate 2.1 libraries to project?”,然后设定存放Hibernate库文件的目录为: /WEB-INF/lib 目录,默认 ...
- 2006-12-12 16:08
- 浏览 14176
- 评论(3)
public static void sendemail()
{
String from="user@xxx.com";
String to="user@yyy.com";
try
{
SmtpClient client = new SmtpClient("mail.xxx.com");
client.from(from);
client.to(to);
PrintStream message = client.startMessage();
message.println("T ...
想做一个java发送email的程序,弄了半天都没发出去,谁能给我个例子吗?jwfdp@yahoo.com.cn
<STYLE type=text/css>#menubar {
BACKGROUND: rgb(212,208,200); FONT: menu; CURSOR: default; POSITION: relative
}
#menubar .root {
BORDER-RIGHT: rgb(212,208,200) 1px solid; PADDING-RIGHT: 2pt; BORDER-TOP: rgb(212,208,200) 1px solid; PADDING-LEFT: 2pt; BORDER-LEFT: rgb(212,208,200) 1px solid; BO ...
- 2006-12-08 14:46
- 浏览 1197
- 评论(0)
/**
* 取得字符串的字节长度
*/
代码
function strlen(str)
{
var i;
var len;
len = 0;
for (i=0;i<str.length;i++)
{
if (str.charCodeAt(i)>255) len+=2; else len++;
}
return len;
} ...
- 2006-12-08 14:04
- 浏览 8261
- 评论(2)