aspose file tools
The moose likes Struts and the fly likes how to change the default class for label in <s:textfield=" title="" /> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "how to change the default class for label in <s:textfield="" label=""/>" Watch "how to change the default class for label in <s:textfield="" label=""/>" New topic
Author

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

Jibin Najeeb
Greenhorn

Joined: Nov 27, 2012
Posts: 6
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..
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to change the default class for label in <s:textfield="" label=""/>
 
Similar Threads
How to place textfield and submit button in one row by using struts2 tags?
form visibility
unable to do validation for select in struts2
problem designing jsp using struts 2.0 tags
Equivalent of logic iterate in Struts 2