Pages Navigation Menu

Coding is much easier than you think

How to Override Default Theme in Struts 2 ?

theme
 
Struts 2 have theme generation functionality due to which it automatically generates Table based HTML code for its tags. This is due the default theme (x_html)
 
** UPDATE: Struts 2 Complete tutorial now available here.
 
Other themes are

  • simple
  • css_xhtml
  • ajax

 
You can change this theme setting to any other theme on tag level, page level or application level as shown below.

 
1. Tag Level


 
2. Page Level

a) Static value


 
b) Dynamic property


 

3. Application Level


 
Popular Post in Struts 2 :

 

3 Comments

  1. sir if i applied validation, i want print error message beside on filed it works but the gap will be increased between the text boxes how can i overcome it plz give me suggest immediately

  2. Appreciating Your Work Jamil.. Keep It Up

Leave a Comment

Your email address will not be published. Required fields are marked *