Struts's bean tag library Select BLOG in Oliveyuganfei

xiaoxiao2021-03-06  38

Click 88Doc.com to find more documentation

The Struts's bean tag library is the enhancement of the standard tag library for JSP, except for the basic functions of the basic JSP: Userbean, JSP: setProperty, etc., also supports the operation of multiple objects, producing JavaBean from a variety of objects, provided More convenient to read, write beans.

The following is a description of its function from the User Guide from its official website,

Introduce A String Constant - Create beans from string constants

Copy An EXISTING BEAN - Creating a new reference for existing Beans (Type property declares the type of this reference)

Copy An EXISTING BEAN Property - Create a bean from the properties of the existing bean. There are three properties of the beans that can be used: Simple, Nested, or Indexed.

Other Struts Copying Tagscopy a cookie - Create beans from cookies. If the specified cookie does not exist, it will throw a runtime - therefore, often use the Tags together to ensure the presence of the cookie. By specifying the multiple property, you can create an array that contains multiple cookies from multiple cookies.

Copy a Request Header - Create a bean from the request header. (The rest shows the same thing)

Copy a Dynamically Created Response - You CAN Generate an internal request to the application you are running, and turn the response data that is returned from that request into a bean (of type String). One possible use for this technique is to acquire dynamically created XML formatted data that will be stored in a bean and later manipulated (such as by applying an XSLT stylesheet). If the current request is part of a session, the generated request for the include will also include the session identifier (and thus be considered part of the same session). (Since Limited knowledge, this paragraph is not understood, so no translation) Copy a JSP IMPLICITLY Defined Object - Establishing Bean from JSP Built-in Object .

Copy a Request parameter - establishes beans from the request parameters. (The rest shows with bean: cookie)

Copy A Web Application Resource - Create a bean that includes a web application resource string, or an InputStream input stream from the web application resource.

COPY A STRUTS Configuration Object - Establishing Bean from the Struts Standard Configuration Object.

-------------------------------------------------- -----------------------------

Processing International Message. The resource is read, configured, etc. to be read in advance before use.

Render A Bean Or Bean Property - Outputs the properties of beans or beans.

转载请注明原文地址:https://www.9cbs.com/read-69992.html

New Post(0)