Code works as I expected, but is there any possibility to make it in a single tag or in two tags. In id="vCurVal" I get values using scriptlet tag which comes from an other jsp's url.
.labelbold {
padding-right: 0px;
padding-left: 0px;
font-weight: bold;
font-size: 12px;
padding-bottom: 0px;
color: #993333;
padding-top: 0px;
font-family: verdana
}
<script type="text/javascript">
var CurrentVal = '<%=strCurrentValue%>';
document.getElementById("vCurVal").innerHTML = CurrentVal;
</script>
<div>
<label class="labelbold" style="font-weight: bold; float:left;">ORDER NO - </label>
<div id="vCurVal" class="labelbold" style="font-weight: bold; float:left;"></div>
<label class="labelbold" style="font-weight: bold; float:left;">  ALREADY EXIST </label>
</div>
Output:
ORDER NO - 37 ALREADY EXIST
And also I tried this way,
<legend class="labelbold" style="font-weight: bold;"> ORDER NO - <label id= "vCurVal" style="color:red;"> </label> ALREADY EXIST </legend>
Output
ORDER NO - ALREADY EXIST
This is not showing the dynamic value 37 as I expected.
Values may get changed according to the input.