使用下面的代码,我无法重定向jsp中的页面以打开新页面?
<div class="col-md-12">
<fieldset>
<legend>ADD NEW FIRM</legend>
<!-- <div class="col-md-12"> -->
<form> Do You Want To Register a New Firm<font color="red">*</font>:
<div><a href="Online_Application" ><button class="btn btn-info btn-md col-md-sm-2">YES </button> </a></div>
</form>
<!-- </div> -->
</fieldset>
</div>
答案 0 :(得分:0)
用按钮替换标签:
<a href="Online_Application" ><button class="btn btn-info btn-md col-md-sm-2">YES </button> </a>
带有提交按钮:
<button type="submit" class="btn btn-info btn-md col-md-sm-2">YES </button>
并在表单标签中设置操作和目标:
<form target="_blank" action="Online_Application">