script方法中怎样跳转到servlet html页面怎么跳转到servlet
script方法中怎样跳转到servlet
如果是表单
var vform=document.getElementById("form")
form.action = "url"
form.submit()
如果不是
parent.rmain.location="url“
或者
window.location.href=”url“
html页面怎么跳转到servlet
你可以用做链接!
在XML 文件里面注册servlet
表单用
在servlet中的配置:
servlet如何跳转页面
在web应用服务中,经常会面对不同SERVLET之间的跳转,目前我们可以通过以下两种方式实现:
1.RequestDispatcher.forward()
2.ServletResponse.sendReDirect()