//打印出得到的網頁代碼
System.out.println(getNetcode(url));
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
代碼如上。這個代碼對于baidu首頁的源代碼能夠正常獲取到,但對baidu顯示查詢結果頁面卻不能獲取到,報錯為:Unexpected end of file from server 請問為什么呢?有什么解決方法嗎?
posted @
2007-05-25 14:40 細雨游風 閱讀(722) |
評論 (0) |
編輯 收藏
請問下JAVA哥哥,我想寫個程序:輸入查詢關鍵字,然后調用baidu or google的數據庫進行查詢,然后返回前10條結果給我。 有什么辦法嗎? 先在此謝謝您~!
posted @
2007-05-21 14:26 細雨游風 閱讀(280) |
評論 (0) |
編輯 收藏
如何判斷一個字符串是繁體編碼還是簡體編碼?????????
posted @
2007-05-08 13:21 細雨游風 閱讀(2381) |
評論 (2) |
編輯 收藏
請問下 J2SE或J2EE-WEB編程中怎么判斷一個字符串的編碼格式是什么? 有沒有什么辦法能夠返回一個字符串的編碼格式?
posted @
2007-05-07 18:34 細雨游風 閱讀(310) |
評論 (0) |
編輯 收藏
請問下 JAVA中怎么進行中文簡體和繁體的轉換呢? 最好用一個方法程序進行一下說明 在此感激不盡 請大俠大姐姐們幫幫小弟弟。。。。
posted @
2007-05-05 15:06 細雨游風 閱讀(389) |
評論 (5) |
編輯 收藏
請問,如何使用Hibernte進行分頁????
posted @
2007-04-23 21:34 細雨游風 閱讀(253) |
評論 (2) |
編輯 收藏
??? 今天好好的把Struts重新復習了遍,然后做了一個小程序,這個程序涉及到AJAX,struts,bean標簽
的一些技術。AJAX的運用今天也算基本上掌握了,這也真是一個不錯的技術,對程序的負重也不大,值得
以后深入的研究。 剛接觸struts這個MVC框架不久,感覺這個框架呢基本上是用配置文件省略去許多的
工作,想起上個月那個web項目,哇,Struts的確能讓編碼輕松不少,減少冗余代碼。而關于bean標簽,
確實比較頭疼,我最薄弱的地方就是涉及到HTML XML 的一些東西,頭疼啊,而且要結合struts AJAX,
哎,弄的我差點土血,還好最終的結果是弄明白了,不過真是。。。-_-!
?? 昨天重新裝了系統,結果今天就中病毒了,在Eclipse上無法編碼(根本點不出東西來),期盼明天有
了殺毒軟件后能夠恢復正常的工作。。。 老天保佑~~!!
posted @
2007-01-15 20:03 細雨游風 閱讀(245) |
評論 (0) |
編輯 收藏
??? 今天在深入學習了數據庫方面的知識。感覺挺吃力。 今天發現很多理論的知識掌握很不牢固,真是很慚愧,今后還得繼續在理論上下工夫。再說今天接觸的知識吧,今天老總深入講解了關于select查詢方法的使用,發現這個東西實在是太靈活了!目前的自己拿著一個小項目也無法找到下手的方向,這應該就是極度缺乏經驗的表現,今后還得多多練習才能有顯著的提高。關于select,我先是很無語,確實是非常的靈活,就其中的連接一項,就嗆得我要死,看來自己在這幾天還得多多看相關的資料多多做練習才行。希望在研究數據庫的同志們也加油,多看書,多看看好的代碼,多去理解,這樣自己才能有提高。 最后,把今天在老總帶領下完成的關于電子書店數據庫系統的代碼放在這里,對于老手來說非常的簡單,望所有新手共勉!
(該代碼沒有涉及insert into,其中數據可以根據實際情況添加)
create table customers
(customerID int primary key not null,
customername varchar(20) not null);?
create table books
(bookid int primary key not null,
booktitle varchar(50) not null,
unitprice int not null
);?
create table orders
(orderid int primary key not null,
orderdate date default sysdate not null,
customerid int not null,
constraint fk_c foreign key (customerid) references customers(customerid)
);?
create table orderitems
(OrderItemID int primary key not null,
orderid int not null,
bookid int not null,
quantity int default '1' not null,
constraint fk_b foreign key (bookid) references books(bookid), constraint fk_o? foreign key (orderid) references orders(orderid));?
select c.customername as 客戶名稱, sum(b.unitprice * oi.quantity)
from customers c
left join orders o on c.customerid = o.customerid
left join orderitems oi on o.orderid = oi.orderid
left join books b on oi.bookid = b.bookid
where to_char(o.orderdate,'yyyy') = to_char(sysdate,'yyyy')
group by c.customername
posted @
2006-11-07 21:50 細雨游風 閱讀(258) |
評論 (0) |
編輯 收藏