最新回答 / qq_英勇無敵防衛隊_03768522
session.setAttribute("Students_list", list); }else{ session.setAttribute("Students_list", null); }加一個else不就完事了嗎,你查找完后如果發現list為空就返回一個null,那么你的界面就沒有顯示了
2016-04-11
for循環應該使用StringBuffer類,性能會比String高。代碼如下
String temp=sid.substring(1);
int i=Integer.parseInt(temp);
i++;
temp=String.valueOf(i);
StringBuffer buf=new StringBuffer();
buf.append("S");
int len=temp.length();
//湊夠七位
for(int j=0;j<7-len;j++){
buf.append("0");
}
sid=buf.append(temp).toString();
String temp=sid.substring(1);
int i=Integer.parseInt(temp);
i++;
temp=String.valueOf(i);
StringBuffer buf=new StringBuffer();
buf.append("S");
int len=temp.length();
//湊夠七位
for(int j=0;j<7-len;j++){
buf.append("0");
}
sid=buf.append(temp).toString();
2016-04-06
Session session = MyHibernateSessionFactory.getSessionFactory().getCurrentSession();
這一句的時候報錯:Type mismatch: cannot convert from org.hibernate.Session to javax.jms.Session
求解答!卡了好久了
這一句的時候報錯:Type mismatch: cannot convert from org.hibernate.Session to javax.jms.Session
求解答!卡了好久了
2016-04-06
Session session = MyHibernateSessionFactory.getSessionFactory().getCurrentSession();
這一句的時候報錯:Type mismatch: cannot convert from org.hibernate.Session to javax.jms.Session
這一句的時候報錯:Type mismatch: cannot convert from org.hibernate.Session to javax.jms.Session
2016-04-06
創建session的時候出問題了:Type mismatch: cannot convert from org.hibernate.Session to javax.jms.Session
我老師導入的jar包是一樣的,為什么會這樣呢求解答!
我老師導入的jar包是一樣的,為什么會這樣呢求解答!
2016-04-06