struts2中jsp页面使用c:import标签后出现的问题?

alert("begin"); <c:import url="http://yj.zju.edu.cn:8888/zuinfo_new/tree.do"/> alert("end");

它会先跳到action进行执行,然后弹出“begin”,但是不会弹出“end”??

脚本有问题。 你有 </p> <p>alert(&quot;begin&quot;); <br> try{<br> <c:import url="http://yj.zju.edu.cn:8888/zuinfo_new/tree.do"/> <br> }catch(e){}<br> alert(&quot;end&quot;); </p> <p>
这样应该可以。

生产的字符必须脚本能识别,否则脚本会出错。那么出错以下的就不执行了。