2017-09-01 62 views
0

以下是我在home.jsp文件中使用引導程序版本3創建的登錄表單,我想使用struts2標籤以及這些引導主題。我正在使用struts2 2.0.11版本。請建議我需要導入哪些插件以及如何在我的jsp中添加該插件以使功能正常工作。如何在引導程序中使用struts2標籤

<div class="modal-body"> 
 
<div id="myTabContent" class="tab-content"> 
 
<div class="tab-pane fade in" id="why"> 
 
<p>We need this information so that you can receive access to the site and its content. Rest assured your information will not be sold, traded, or given to anyone.</p> 
 
<p></p><br> Please contact <a mailto:href="[email protected]"></a>[email protected]</a> for any other inquiries.</p> 
 
</div> 
 
<div class="tab-pane fade active in" id="signin"> 
 
    <form class="form-horizontal"> 
 
    <fieldset> 
 
    <!-- Sign In Form --> 
 
    <!-- Text input--> 
 
    <div class="control-group"> 
 
     <label class="control-label" for="userid">Username:</label> 
 
     <div class="controls"> 
 
     <input required="" id="userid" name="userid" type="text" class="form-control" placeholder="User Name" class="input-medium" required="true"> 
 
     </div> 
 
    </div> 
 

 
    <!-- Password input--> 
 
    <div class="control-group"> 
 
     <label class="control-label" for="passwordinput">Password:</label> 
 
     <div class="controls"> 
 
     <input required="true" id="passwordinput" name="passwordinput" class="form-control" type="password" placeholder="********" class="input-medium"> 
 
     </div> 
 
    </div> 
 

 
    <!-- Multiple Checkboxes (inline) --> 
 
    <div class="control-group"> 
 
     <label class="control-label" for="rememberme"></label> 
 
     <div class="controls"> 
 
     <label class="" for="rememberme-0"> 
 
      <input type="checkbox" name="rememberme" id="rememberme-0" value="Remember me">&nbsp;&nbsp;Remember me 
 
     </label> 
 
     </div> 
 
    </div> 
 

 
    <!-- Button --> 
 
    <div class="control-group"> 
 
     <label class="control-label" for="signin"></label> 
 
     <div class="controls middleAlign"> 
 
     <button id="signin" name="signin" class="btn btn-success middleAlign">Sign In</button> 
 
     </div> 
 
    </div> 
 
    </fieldset> 
 
    </form> 
 
</div>

+0

Struts 2.0.11已過時,您應該升級到最新版本才能使用引導程序插件。 –

+0

這是一個廣泛的問題,它顯示您缺乏編程基礎知識並且沒有進行任何研究。在SO上發佈問題之前,請更改它。 –

回答

0

的Struts 2.0.11已經過時,應該升級到最新版本,以便能夠使用引導程序插件。

Struts2引導程序插件可在GitHub上獲得。

相關問題