Webwork set push

Source: Internet
Author: User

 

1. webworkTo use tags:Web. xmlConfiguringCodeAs follows:

<Taglib>

<Taglib-Uri> webwork </taglib-Uri>

<Taglib-location>/WEB-INF/lib/webwork. Jar </taglib-location>

</Taglib>

 InJSPTo use:

<% @ Taglib prefix = "ww" uri = "webwork" %>

2. webworkThere are four types of labels: DATA tag, control flow tag,UIAnd miscellaneous tags.

3. htmlIn<Or>Or&Special meanings cannot be directly displayed on the interface, but if you want to display these symbols on the interface, you need to escape the strings.

4. SetThe label usage is as follows:

<WW: property value = "# session. ['user']. username"/>

<WW: property value = "# session. ['user']. Age"/>

<WW: property value = "# session. ['user']. Address"/>

The above code is usedSetLabel to write:

<WW: Set Name = "user" value = "# session [''user]"/>

<WW: property value = "# user. username">

<WW: property value = "# user. Age">

<WW: property value = "# user. Address">

5. PushTags can push your reference to a single object into the value stack. This is quite useful in a large number of operations around a single object.

<WW: Set Name = "user" value = "# session [''user]"/>

<WW: Push value = "# user"/>

<WW: property value = "username">

<WW: property value = "Age">

<WW: property value = "Address">

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.