没有使用类窗体控件显示jsp值

问题描述 投票:0回答:1

我使用HTML生成jsp代码,html输出如下: -

<input type="text" style="font-weight:bold; background-color: orange; color: blue;" name="req_hallname" class="form-control" title="Conference Hall Requested" value="CIG-VC">

其中value=""充满来自CIG-VCjsp code

当我使用CIG-VC时,class="form-control"的值不可见。如果我删除class="form-control"定义,输入字段IS值可见,但格式化被破坏。

这是两种情况的图像

enter image description here

请告知如何克服这个问题。

javascript html class form-control
1个回答
1
投票

您可以使用:

 <div class="form-group" >
  <label class="control-label col-sm-2" for="conference">Conference Hall Requested 
   :
  </label>
     <div class="col-sm-8"> 
      <input id="conference" type="text" style="font-weight:bold; background-
         color:orange; color: blue;"  name="req_hallname" value="CIG-VC"/>
     </div>
 </div>
© www.soinside.com 2019 - 2024. All rights reserved.