在JSP中重定向页面以打开新页面

时间:2018-11-14 05:36:38

标签: jsp redirect new-operator

使用下面的代码,我无法重定向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>

1 个答案:

答案 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">