S2SH+jquery+webspere部署問題

hyanqing1發表於2009-10-26
大家好,我們專案框架是由Struts2+hibernate3.2+spring2.5,在頁面裡使用的Ajax都是使用的是jquery,在本地除錯是沒有問題的,但是部署到webspere6裡就出問題了,說路徑找不到。比如我一個地方,是涉及到聯動的地方:

// 標準年級的更改
	$("[name='vo.stdGradeId']").change(function(){
		reset();
		// 獲取年級的課程
		var url = "courseware!getStdCourses.action";
		var stdGradeId = $("[name='vo.stdGradeId']").val() || '';
		if(stdGradeId == '') return;
		var data = $.param({stdGradeId: stdGradeId});
		$.getJSON(url, data, function(r){
			if (r == null) return;
			var obj = $("[name='vo.stdCourseId']");
			var str = "<option value=''>請選擇</option>";
			$(r).each(function(i){
				str += "<option value='" + r[i].stdCourseId + "'>" + r[i].stdCourseName + "</option>";
			});
			$(obj).html(str);
		});
	});
<p class="indent">

透過火狐的測試,json取出來了,結構是:

<p class="indent">[{"stdGradeId":"90b05cd0d07e4ac0a919234f09037b99","stdGradeName":null,"structureId":null,"publisher"

:"人民教育出版社","author":"yakamoz","introduction":"小學一年級","stdCourseId":"c5f8ea85558b4e329bf09bd66fafcf3d"

,"stdCourseName":"語文   ","class":"com.wzc.maintain.vo.StandardCourseVO","version":"2.0","isbnno":null

,"inUse":true},{"stdGradeId":"90b05cd0d07e4ac0a919234f09037b99","stdGradeName":null,"structureId":null

,"publisher":"art","author":"art","introduction":"art","stdCourseId":"5de7ab95c9554597be7426a32f8a67a0"

,"stdCourseName":"美術","class":"com.wzc.maintain.vo.StandardCourseVO","version":"1.0","isbnno":null,"inUse"

:true},{"stdGradeId":"90b05cd0d07e4ac0a919234f09037b99","stdGradeName":null,"structureId":null,"publisher"

:null,"author":null,"introduction":"簡介","stdCourseId":"60518732a41c4a7ca00c73947da900dd","stdCourseName"

:"音樂","class":"com.wzc.maintain.vo.StandardCourseVO","version":"1.0","isbnno":null,"inUse":true},{"stdGradeId"

:"90b05cd0d07e4ac0a919234f09037b99","stdGradeName":null,"structureId":null,"publisher":null,"author"

:null,"introduction":null,"stdCourseId":"5ba249d7527b4b05ace796df5d4e1de9","stdCourseName":"數學","class"

:"com.wzc.maintain.vo.StandardCourseVO","version":"1.0","isbnno":null,"inUse":true},{"stdGradeId":"90b05cd0d07e4ac0a919234f09037b99"

,"stdGradeName":null,"structureId":null,"publisher":null,"author":null,"introduction":null,"stdCourseId"

:"0b2fe7b37ca04906bf236b946ed3c4d7","stdCourseName":"其他","class":"com.wzc.maintain.vo.StandardCourseVO"

,"version":"1.0","isbnno":null,"inUse":true}]Error 404: SRVE0190E: 找不到檔案:/Maintain/courseware!getStdCourses

.action
<p class="indent">

最後就出現找不到檔案了,明明是返回了資料,請各位大師幫忙解決啊,謝謝!!!!

相關文章