急:点击按钮,调用后台了,但前台直接显示tomcat页面。
后台正常走,用dubug调试过程中,前台直接显示下面这样了。怎么解决啊。
Directory Listing For /
--------------------------------------------------------------------------------
Filename Size Last Modified
css/ Fri, 25 Apr 2014 02:55:45 GMT
image/ Fri, 25 Apr 2014 02:55:45 GMT
images/ Fri, 04 Apr 2014 07:29:51 GMT
img/ Fri, 04 Apr 2014 07:29:51 GMT
js/ Fri, 25 Apr 2014 02:55:45 GMT
jsp/ Sun, 27 Apr 2014 07:21:43 GMT
panel_files/ Fri, 25 Apr 2014 02:55:45 GMT
template/ Fri, 25 Apr 2014 02:55:45 GMT
--------------------------------------------------------------------------------
Apache Tomcat/5.0.30
function query(){
var starttime = document.getElementById("starttime").value;
var endtime = document.getElementById("endtime").value;
var module = document.getElementById("module").value;
var idOrName = document.getElementById("user_id_name").value;
var url = "record.do?method=queryList&idOrName="+idOrName+"&starttime="+starttime+"&endtime="+endtime+"&loginModule="+module;
url = encodeURI(url);
url = encodeURI(url);
window.location.href=url;
}
------解决方案--------------------找不到默认页面(index.jsp),把页面css等以文件形式显示出来了。
存在安全问题