the purpose of this blog: ① summary of their own learning process, equivalent to study notes ② to share their own experience to everyone, learn from each other, communication, not commercialcontent inevitably appear problems, Welcome to correct, exchange, discussion, you can leave a message, can also be contacted by the following Ways. I Internet Technology enthusiasts, Internet technology enthusiastsweibo: Ivan is in 0221qq:951226918
--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- -----------------------------
1. introduction:
1) theme: A set of templates that are collected together to allow all UI tags to produce the same visual Effect. A template that is similar in style is packaged as a theme
-simple: translates UI tags into the simplest HTML counterpart and ignores Row-label properties
-xhtml:xhtml is the default Theme. The template for this topic provides an automated typesetting mechanism by using a layout table.
-css_xhtml: the templates in this topic are similar to the templates in XHTML themes, but they will be used for layout and typesetting using CSS
-ajax: the template in this topic is based on the XHTML theme of the German template, but adds some Ajax features.
2. Modify the Theme:
-through the UI Tag's theme Property
-in a form, if the theme property of a UI tag is not given, it will use the theme of this form
-add a Theme property in page, request, session, or application
-modify the Struts.ui.theme property in the Struts.properties File.
<!--modify the theme of the current struts app--
<constant name= "struts.ui.theme" value= "simple" ></constant>
<% Request.setattrbute ("theme", simple)%>
[original]java Web Learning Note 63:struts2 Learning Path--theme