Tutorial: Java-Struts tutorial-Struts tag

Source: Internet
Author: User
Tags tld

Http://www.daily-english.com.cn /? Action-viewnews-itemid-466

SUTs tag

HTML: form considerations

When using HTML: form, you must specify the action attribute, especially when using
The specified action for HTML tags should be found in XML and the actionform displayed on the page
Matches the. Do engine used in the action. Otherwise, JSP errors will occur.

Basic JSP operations in SUTs

File HeaderCode

<% @ page contenttype = "text/html; charset = gb2312" %>
<% request. setcharacterencoding ("gb2312 "); %>
<% @ taglib uri = "/WEB-INF/suts-bean.tld" prefix = "Bean" %>
<% @ taglib uri = "/WEB-INF/suts-html.tld" prefix = "html" %>
<% @ taglib uri = "/WEB-INF/suts-logic.tld" prefix = "logic" %>
<% @ taglib uri = "/WEB-INF /suts-template.tld "prefix =" template "%>
general information output

drop-down box output
note: all HTML tags (that is, those that need to be displayed in Form) must be included in the container


name = "[name attribute of form-bean segment in XML]"
property = "[use an attribute of actionform as the value of option, this attribute is collection,] "
labelproperty =" [use an actionform attribute as the option text, which is collection,] "
/>

use of logical stacks
id = "[a custom Record ID represents the encapsulation of a single record. This ID should be associated with Bean: in write, the name attribute is the same] recoreid "
name =" [name attribute of form-bean segment in XML] "
property =" [Action with collection attribute name] "
offset =" [displayed offset] "
length =" [number of records displayed] "
name = "[a user-defined encapsulation Record ID, which corresponds to the bean: in write, the name attribute is the same] recoreid "property =" [attributes of the actionform mapped to a single record] recordname "/>

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.