S2SH+jquery+webspere部署问题

09-10-26 hyanqing1

大家好,我们项目框架是由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>

通过火狐的测试,json取出来了,结构是:

<p>[{"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>

最后就出现找不到文件了,明明是返回了数据,请各位大师帮忙解决啊,谢谢!!!!

hyanqing1
2009-11-17 12:21

哎,这个上个星期搞定了,原来给websphere打个补丁就可以了