Use jstl labels in JSP.

Source: Internet
Author: User
<Select name = "deflossthirdparty. ciindemduty "id =" deflossthirdparty. ciindemduty "class =" selectui-input w_15 selectui-required DC-chk "style =" display: none "> <option value ="-99 "> -- select -- </option> <C: foreach items = "$ {ciindemdutymap}" Var = "entry" varstatus = "status"> <option value = "$ {entry. key} "$ {(entry. key EQ thirdpartyciindemduty) or (empty thirdpartyciindemduty and entry. key EQ '0 ')? 'Selected': ''}>$ {entry. Value} </option> </C: foreach> </SELECT>

The above directly pieces together the El expression, and then the running effect is also acceptable.

 

 
<Input type = "button" onclick = "Sm3 (); onblur (this ); "Name =" submitbutton "class =" button_ty "value =" Submit "$ {(not empty checknodeout and checknodeout )? '': 'Disabled '}>

OK, directly splice the El expression above, and then the running effect is also acceptable.

 

Use jstl labels in JSP.

 
<TD class = "bgc_tt short" id = "businaturenotd1" <C: If test = "$ {checkshift. carshifttype EQ '06'} "> style =" display: inline "</C: If> <C: If test =" $ {checkshift. carshifttype ne '06'} "> style =" display: none "</C: If> business source </TD>

Business Source
</TD>
Jstl can be embedded, but El representation cannot be embedded. I tried this.

To be honest, the El expression is just a simple test. No more. After jstl is found to be acceptable, the. El method is simpler and can be tested.

Related Article

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.