[original]java Web Learning Note 63:struts2 Learning Path--theme

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.