如何在bootstrap

时间:2017-09-01 12:49:07

标签: jsp struts2

下面是我在home.jsp文件中使用bootstrap版本3创建的登录表单,我想使用struts2标签以及这些引导程序主题。我使用struts2版本2.0.11。请建议我需要导入哪些插件以及如何在我的jsp中添加它以使功能正常工作。

<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="JoeSixPack@Sixpacksrus.com"></a>JoeSixPack@Sixpacksrus.com</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>

1 个答案:

答案 0 :(得分:0)

Struts 2.0.11已经过时,你应该升级到最新版本才能使用bootstrap插件。

Struts2引导程序插件位于GitHub