BEA WebLogic Workshop8.1 JPF Development Experience Summary

xiaoxiao2021-03-06  64

Workshop8.1 provides a NETUI tag for data binding, which can easily implement some data delivery. Let's develop JPF experience and share it with you.

&& action from:

Inheriting the internal static class of FormData, if you use a simple type, it is a JavaBean,

When the form bean contains a complex data type, the reset method must be added to the form bean definition to ensure that the complex class instance can be used to store the user in the form, subsequently submit (send) value.

It is valid within the scope of this request to the NETUI: Form tag in the JSP. When you need to pass an instance of ActionFrom, you need to use: Return New Forward ("Success", Form), in the following JSP, use request to obtain an instance of the passed ActionFrom.

NetUI tags can be read and written.

&&Pageflow:

Inherit a class of PageFlowController.

Point to the current page stream, through the variable of the JPF control class, can be assigned to the program and the page stream is valid. So you can use the variables declared in PageFlow to deliver object instances, for example, when using DBControl, we define JavaBean in DBControl's JCX, you can use this JavaBean to transfer data binding, With other NetUI tags, such as You can display the individual properties of the object.

Netui tag read only

&& globalApp:

Point to the Global.app object, which can be accessed by any location of the web application to be available in all page streams in a web application user (browser) session. By default, this type of instance is included in the JPF file, but reference will be commented.

It is the best choice for the entire session passage, and the data in this context is maintained for each user of the current Web application, and the file is located in Web-INF / SRC / GLOBAL.

NetUI tag read only.

&& URL:

Pointing the URL of the current JSP, which can bind the URL attribute. NetUI tag read only. use

User

The assignment of the parameters will follow, it will follow the URL,

The next page can pass

can pass through the Action

getRequest (). getParameter ("SelectSerno"); to get this parameter.

&& session:

Point to the JSP session object, javax.servlet.http.httpsession.

You can set the session timeout value using the element of the /web-inf/web.xml file. The element is part of the element, which sets the number of minutes before the session expired in this web application. The value set in this element can override the value set in the TimeoutSecs feature of the element in WebLogic-specific deployment descriptor WebLogic.xml, of course, you can also set it in the program, but pay attention to both The difference in units.

&& container:

Point to complex data, including your own Javabean

Commonly used in the "NetUi-Data: Repeater", etc., if you use a JavaBean class, Workshop can take out each property of such instances, which is represented by a similar {container.item.name}.

&& Application:

Point to the application object, javax.servlet.servletContext.

Through this.getServlet (). GetServletContext (). GetInitParameter ("root");

Can get web.xml

root

f: // ftp_server // Temp //

The value.

&& PageContext:

PageContext operates mandatory conversion when using GetAttribute (String) and SetAttribute (String, Object).

PageContext references the Page-Scope feature mapping of PageContext in JSP. The value is read-only. In WebLogic Workshop, when using Netui-Data: GetData tags, PageContext is placed in the Scriptlet, and PageContext is also used to access ActionForm, Container, GlobalApp, and PageFlow data in the scriptlet.

&& bundle:

The properties defined in the message resource file. The Bundle context references the properties defined in the message resource file, and the message resource file allows you to implement an international web application through the "non-hard coded" text tag in the JSP page. . It relies on the properties defined in the. Properties file, @JPF: Message-Resources tag is implemented.

NetUI tag value is read-only

&& PageInput

The member variable defined in the page stream controller class. By using the tag in JSP, you can display the value of the member variable defined in the Page Sport Controller class using the pageinput context. The NETUI tag value is read-only.

If you need to extend the JSP tag in the development, please refer to:

Workshop Help - WebLogic Workshop Extension Development Kit - Development Tag Database Extension

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

New Post(0)