关于include 引用.do的问题
<jsp:include page= "/san.do?method=abc " flush= "true "/>
我这样写程序不显示,但是http://localhost:8080/aaa/san.do?method=abc这样能运行能看到结果,
为什么include不能引用.do
------解决方案--------------------你可以这样:
<script language= "javascript " type= "text/javascript " src= "http://localhost:8080/aaa/san.do?method=abc " > </script>
同时你的san.do输出的东西是类似
document.write( " <table> ");
document.write( " <tr> ");
document.write( " <td> ");
document.write( "td中的内容 ");
document.write( " </td> ");
document.write( " <tr> ");
document.write( " </table> ");
在do中用out.println(....);
也可以:
<jsp:include page= "a.jsp " flush= "true "/>
a.jsp中写入
window.location= "san.do?method=abc "