The below textbox is printing the value of the phone number after getting it from the database.
<table>
<tr>
<td>
<s:textfield theme="simple" name="phoneNumber"/>
</td>
</tr>
</table>
How to print this value in the format (xxx) xxx-xxxx.
Note: The values are coming in the form of 0123456789 from the database
and output should be (012)345-6789.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…