同一項目重新引入tomcat
去掉tomcat中service.xml中的context配置,建立tomcat的新發布路徑new--》other-->java tomcat建立新發布路徑service.xml中重建項目context配置.
posted @ 2012-05-18 19:17 youngturk 閱讀(212) | 評論 (0) | 編輯 收藏
posted @ 2012-05-18 19:17 youngturk 閱讀(212) | 評論 (0) | 編輯 收藏
posted @ 2012-05-17 15:17 youngturk 閱讀(686) | 評論 (0) | 編輯 收藏
posted @ 2012-05-17 14:15 youngturk 閱讀(1123) | 評論 (5) | 編輯 收藏
posted @ 2012-05-17 11:50 youngturk 閱讀(682) | 評論 (2) | 編輯 收藏
posted @ 2012-05-17 11:38 youngturk 閱讀(2187) | 評論 (0) | 編輯 收藏
function test(varWeight){
//var index = parseFloat(document.activeElement.id);獲得當前對象
var index = parseFloat($(varWeight).attr("id"));//獲得當前id內容
var fieldNo = document.getElementById("fieldNo")[index].value;
var weight = document.getElementsByName("weight")[index+1].value;
if(fieldNo != "" && weight != ""){
var query = "fieldNo="+fieldNo+"&weight="+weight;
alert(query);
$.ajax({
type: "POST",
url: '${webroot}/suggest!maxCount.do',
// dataType: 'text',
data: query,
success:function(data){
//name1=msg.userName[0].name1;
//close();
//return false;
// document.getElementById(obj).innerHTML=html;
},
error: function(){
// document.getElementById(obj).innerHTML="網絡連接超時,無法顯示數據!";
// return;
}
});
}
}
posted @ 2012-05-17 11:29 youngturk 閱讀(256) | 評論 (0) | 編輯 收藏
|
posted @ 2012-05-17 10:05 youngturk 閱讀(2922) | 評論 (0) | 編輯 收藏
posted @ 2012-05-16 16:50 youngturk 閱讀(314) | 評論 (0) | 編輯 收藏
var aArr = ["a", "b", "c", "d", "e"];
$("p:eq(0)").text(aArr.join());
aArr = $.map(aArr,function(value,index){
//將數組轉化為大寫并添加序號
return (value.toUpperCase() + index);
});
$("p:eq(1)").text(aArr.join());
aArr = $.map(aArr,function(value){
//將數組元素的值雙份處理
return value + value;
});
posted @ 2012-05-16 16:00 youngturk 閱讀(569) | 評論 (0) | 編輯 收藏
//1 創建對象
var xmlHttp;
function createXMLHttpRequest(){
if(window.ActiveXObject)
xmlHttp = new ActiveXObject("Microsoft.XMLHttp");
else if(widow.XMLHttpRequest)
xmlHttp = new XMLHttprequest();
}
//2建立請求
♠
var firstName = document.getElementById("firstName").value;
var url= "9-3.aspx?"+ new Date().getTime();
xmlHttp.open("GET",url+ "firstName=" + firstName ,ture)//ture表示異步 get方法在提交數據時候在queryString 中發送數據
♣
xmlHttp.open("POST",url);//第4步發送數據時候用xmlHttp.send(firstName)
//3異步對象鏈接服務器
xmlHttp.onreadystatechange = function(){
if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
var responseDiv = document.getElementById("serverResponse");//xmlHttp.responseText服務器的返回并賦值
responseDiv.innerHTML = decodeURI(xmlHttp.responseText); //解碼
}
//4數據發送
xmlHttp.send(null)
2步驟當為post時候
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
posted @ 2012-05-16 11:43 youngturk 閱讀(248) | 評論 (0) | 編輯 收藏