日期:2014-05-18  浏览次数:20621 次

struts的action在return的时候怎么让它弹出新页面?而不是跳转到新页面?
struts的action在return的时候怎么让它弹出新页面?而不是跳转到新页面?
就相当与在jsp的form里面设置target="_blank".求解

------解决方案--------------------
1. <a href="youraction.do?xxxx=yyy" target="_blank">Action</a>
2. <form action="youraction.do" target="_blank" method="post"></form>
像上面这样设置在页面里不好吗?为什么要搞到Action里面去实现?想不通......
------解决方案--------------------
楼上正解
------解决方案--------------------
 
1. <a href="youraction.do?xxxx=yyy" target="_blank" >Action </a > 
2. <form action="youraction.do" target="_blank" method="post" > </form > 
像上面这样设置在页面里不好吗?为什么要搞到Action里面去实现?想不通...... 
————————————————————————————————————————————
form中不用重写URL可以一定程度上保护敏感信息当然在查看源代码中还是可以看到信息的内容
------解决方案--------------------
window.open('*.do','height=600,width=760,left=45,top=80,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no');