File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to change the default class for label in <s:textfield="" label=""/>

 
Jibin Najeeb
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code
<s:form>
<s:textfield name="username" label="Username"/>
</s:form>

generates the follwing html code

<table>
<tr>
<td class="tdLabel"><label for="login_username" class="label">Username:</label></td>
<td><input type="text" name="username" value="" id="login_username"/>
</td>
</tr>
</table>

I want to change the value of label class--- class="label" which is default. Is there any method with default theme as xhtml..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic