Johnhe
BlogJava
首頁
新隨筆
新文章
聯系
聚合
管理
posts - 20,comments - 6,trackbacks - 0
<
2009年7月
>
日
一
二
三
四
五
六
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
給我留言
查看公開留言
查看私人留言
隨筆分類
Hibernate
J2SE(7)
javascript(4)
Jdbc(1)
Jsp(3)
Oracle(2)
struts1.x+struts2
我和哥哥...我們的愛情.
隨筆檔案
2010年2月 (1)
2009年7月 (2)
2009年6月 (1)
2009年5月 (4)
2009年4月 (1)
2009年3月 (11)
搜索
最新評論
1.?re: 關于request.getParameterValues("String")的空指針異常
一定可以
--5
2.?re: 關于request.getParameterValues("String")的空指針異常
@xli
哪里不行。你問題發上來呢。我幫你看啊。
大家一起解決問題。
反正我是可以了哦。
--曉江小子
3.?re: 關于request.getParameterValues("String")的空指針異常
還是不行啊。郁悶
--xli
4.?re: 關于java.lang.String的split方法???
評論內容較長,點擊標題查看
--林韻
5.?re: 關于java.lang.String的split方法???[未登錄]
@mumu
哦,明白了。謝謝你。
沒有仔細看。額。謝謝。
--曉江小子
閱讀排行榜
1.?Oracle取得時間的時分秒(4921)
2.?關于request.getParameterValues("String")的空指針異常(3297)
3.?[轉]JSP開發時, 在頁面中格式化和解析日期始終是個頭疼的事情. 可以用JSTL和JavaScript搞定.(2468)
4.?關于Hibernate的一對多保存的問題?(2091)
5.?關于java.lang.String的split方法???(1389)
評論排行榜
1.?關于request.getParameterValues("String")的空指針異常(3)
2.?關于java.lang.String的split方法???(3)
3.?復選框問題---自己碰到的。(0)
4.?拼串(0)
5.?關于刪除的方法!(0)
記錄自己要用的東西而已。。。。很簡單 不用看了
<
table align
=
"
center
"
width
=
"
640
"
>
<
tr
>
<
td
>
對應網點:
&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
<
select name
=
"
wangdian
"
id
=
"
wangdian
"
style
=
"
width:80pt;
"
onchange="window.location='/safety-wxy/ent/wangdian_extend_update.jsp?dwdm=<%=dwdm%>&wxyid=<%=wxyid%>&uuid='+this.value;">
<
option value
=
"
0
"
></
option
>
<%
String oid
=
""
;
String wdname
=
""
;
Connection connection;
try
{
connection
=
DataFactory.getConnection(
"
wxyinfor
"
);
}
catch
(Exception e)
{
throw
new
SQLException(e.toString());
}
Statement statement
=
null
;
ResultSet resultset
=
null
;
//
System.out.println("--------"+uuid);
String sql
=
"
select oid,wdname,wdaddress,wdfzr,wdlxdh from T_xzwdext where dwdm = '
"
+
dwdm
+
"
' and wxyid = '
"
+
wxyid
+
"
'
"
;
System.out.println(
"
----test sql ---
"
+
sql);
try
{
statement
=
connection.createStatement();
//
resultset = statement.executeUpdate(sql);
resultset
=
statement.executeQuery(sql);
while
(resultset.next())
{
//
oid = resultset.getString("oid");
%>
<
option value
=
"
<%=resultset.getString(
"
oid
"
) %>
"
><%=
resultset.getString(
"
wdname
"
)
%></
option
>
<%
//
wdname = resultset.getString("wdname");
}
}
catch
(Exception e)
{
System.out.println(e.getMessage());
}
finally
{
try
{
if
(
null
!=
resultset)
{
resultset.close();
resultset
=
null
;
}
}
catch
(SQLException e1)
{}
try
{
if
(
null
!=
statement)
{
statement.close();
statement
=
null
;
}
}
catch
(SQLException e2)
{}
try
{
if
(
null
!=
connection)
{
connection.close();
connection
=
null
;
}
}
catch
(SQLException e3)
{}
}
%>
<%
System.out.println(usertype);
if
(usertype
!=
null
&
!
"
adm
"
.equals(usertype))
{
%>
<
input name
=
"
wadd
"
type
=
"
button
"
id
=
"
wadd
"
value
=
"
添加網點
"
onclick="window.location='/safety-wxy/ent/wangdian_extend.jsp?dwdm=<%=dwdm%>&wxyid=<%=wxyid%>'"
>
<%
}
%>
</
td
>
</
tr
>
</
table
>
posted on 2009-07-02 15:07
Johnhe
閱讀(172)
評論(0)
編輯
收藏
所屬分類:
javascript
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
簡單的。。。
記錄自己要用的東西而已。。。。很簡單 不用看了
[轉]JSP開發時, 在頁面中格式化和解析日期始終是個頭疼的事情. 可以用JSTL和JavaScript搞定.
javascirpt的全選,修改刪除判斷小例子
Copyright ©2025 Johnhe Powered By
博客園
模板提供:
滬江博客
主站蜘蛛池模板:
铅山县
|
棋牌
|
沙河市
|
黄龙县
|
六安市
|
怀仁县
|
唐河县
|
托克逊县
|
江孜县
|
盐池县
|
深泽县
|
大埔区
|
榆社县
|
镇巴县
|
玉门市
|
文化
|
隆林
|
延长县
|
蒙阴县
|
龙门县
|
浦县
|
南陵县
|
抚宁县
|
双峰县
|
新郑市
|
容城县
|
武鸣县
|
和平区
|
霍山县
|
甘洛县
|
托里县
|
灵璧县
|
民县
|
广河县
|
苏尼特左旗
|
鲁甸县
|
澎湖县
|
竹北市
|
富裕县
|
新河县
|
长治县
|