- 浏览: 59906 次
- 性别:
- 来自: 深圳
最新评论
文章列表
This simple example is show the query result of Hibernate,the database is sqlservel2000,ok,first,create a web project in eclipse,then click the right on this project to add hibernate capabilities in MyEclipse.so it will generate a hibnerate.cfg.xml and HibernateSessionFactory.java
Hibernate.cfg.xml: ...
Three compile command of JSP: @page,@include,@taglib
<%@page[language="Java"][extends="package.class"] --the parent class should be extended[import= "package. class | package. *},…"] --import some package for your java code[session="true | false"] --whether ...
I have read SQL server 2000 stored procedures HandBook,just do some easy examples of it.here is the code:
create procedure Example_05 @ValIn bigint,@ValOut bigint output
as
begin
if @ValIn > 20
begin
print 'Invalid starting point should be <=20'
return -99
end
dec ...
- 2009-09-07 18:18
- 浏览 826
- 评论(0)
Sending request is the asynchronous operation ,here is the code of sending on the widget:
function getRequest() {
http_request = false;
if(window.XMLHttpRequest)
{
http_request = new XMLHttpRequest();//create a new XMLHttpRequest()
if (http_request.overrideMimeType) ...
In order to test the function of Jquery, you need to down the src of Jquery and some plugins(plugins are very useful when you want to finish some specail funciton).
Now I created a test.html,test.js, that is enough for testing,just add this in your head of Html.
<script src="js/jquery.js&qu ...
The exception throwed by the application is : error at ::0 can't find referenced pointcut
I also queried this on google.but it seems that no one can give an right way to solve this problem.so I also want to ask again,if you know the answer, pls share it. :)
As we know,script can be used for testing,the main idea of Automatic tools is the automatic cases are composing with lots of steps.every step contains some script.you should define some variable for transporting from one step to the next step,global-variable shoule be exist for that, like if I get th ...
- 2009-08-14 09:52
- 浏览 712
- 评论(0)
The method implements:
public class SingleBand implements Performer{
public SingleBand(){}
private Collection<Instrument> instruments;
public void setInstrument(Collection<Instrument> instruments){
this.instruments = instruments;
}
public void perform() {
// TO ...
- 2009-08-11 20:27
- 浏览 726
- 评论(0)
1.If you want to use Filter for intercept ,you shoule implements Filter interface which have three methods you must implement it:init(),doFilter() and destroy() :
public class FilterTest implements Filter{
private ServletContext context;
//init the ServletContext
public void init(FilterCo ...
文章出处:http://www.blogjava.net/rickhunter/articles/28133.html
Log4j的概念 <!--StartFragment --> Log4j中有三个主要的组件,它们分别是 Logger、Appender和Layout,L<!--StartFragment -->og4j 允许开发人员定义多个Logger,每个Logger拥有自己的名 ...
- 2009-08-05 15:41
- 浏览 642
- 评论(0)
I just want to say thanks to this book <<深入浅出 hibernate>>.
I am a green learner.I must admit ,this is the first book that I read more than 300 pages in half a month. it is easy to understand by its detailed explaination(Xia xin,Cao xiaogang,Jerry Tang);I believe I learn a more depth o ...
- 2009-08-03 18:59
- 浏览 675
- 评论(0)
There are some usage of time we often used for developping,here is my submit:
one:
Get the unique value by getTime
import java.sql.Timestamp;
import java.util.Date;
Date date=new Date();
Timestamp st=new Timestamp(date.getTime());
String unique ...
Widget is an application that can be run in the ophone ,You can develop lots of applications, like some logic games,weather forecast and so on.It must follow the specification of JIL, or it cannot be installed.Basically, a widget including these things: Root: | +--css | ...
http://blog.csdn.net/wumingabc/archive/2009/05/19/4202007.aspx
- 2009-07-28 09:17
- 浏览 2231
- 评论(0)
When want to add a line or delete a line for detailed info for basic object ,we can use this:
function deleteRow(tableObjStr,saveNumber){
var tableObj = document.getElementById(tableObjStr);
var rowNum = tableObj.rows.length-1;
var count = 0;
if(rowNum==1) return alert("C ...
- 2009-07-27 19:43
- 浏览 688
- 评论(0)