JDeveloper implements Structs

xiaoxiao2021-03-06  37

Reference resources:

About JDeveloper resources are really few, there is only one book on JDeveloper in the market. But this book did not speak how to develop Structs, I have found it, Google is only two pages of information. The most fundamental or go Found in OTN:

Http://www.racle.com/technology/global/cn/sample_code/tutorials/bc4jvsm/struts/concepts.htm

It is not bad here, from the beginning MVC architecture, until how to implement MVC in JDeveloper. (Structs), of course, have implemented MVC with RequestDispatcher. Here just wants Structs MVC. Configure Eclipse and other IDEs. The J2EE development environment is in trouble. I have never understood that there is so much plug-in. Why don't I integrate. I don't integrate. I want to integrate the Oracle Technology Day. But I am afraid, too much Relying on the IDE of JDEVEOper!

"Model portion of MVC-based systems typically contains JavaBean classes that define internal states of the system, which also specify an operation for changing this state. If you use the BC4J data access frame, this layer will fully implement this model. Otherwise, you need to create Implement the class of the model. "

In other words, can BC4J create a model for us?

"The view part of Structs-based applications is usually constructed with JSP technology. The JSP page can contain static HTML (or XML) text called" Template Text "and can insert dynamic content based on special operation tag interpretation (time request) The .jsp environment includes a set of custom JSP tag libraries (such as Struts tag libraries), standard JSP operation tags (such as those described in the JavaServer page specification) and installation of users their own JSP custom marker tools. If BC4J data is used Access the framework, you can use the JDeveloper JSP Generation Wizard and custom tag library to make the JSP page displays the dynamic content of the data binding. "

Talking about the JSP tag that can be used in the development environment, there is no difficulty, but it is another way of writing of some regular code. Perhaps it is more convenient, although we start to use it is not used to it. Back and emphasize the benefits of BC4J. This thing is very convenient, and I want to understand what I want to make a long time.

"The application's controller part focuses on the receiving client's request (usually the user running a web browser), decides which business logic functions, then authorize to the appropriate view component to generate the next phase of the user interface. Struts The main components of Controller are a servlet for the ActionServlet class and the RequestProcessor class. If you use a BC4J data access framework, RequestProcessor is expanded, it is often called BC4jRequestProcessor. "

As with the previous introduction, first emphasize the universal method of implementing StruCTS, but also special classes in Structs BC4J --- BC4JREQUESTPROCESSOR

JSP code features inside STRUCTS (MVC):

· Create a JSP page with HTML and custom tag libraries to implement data views. Once there is an HTTP request, you can trigger the user through the link.

• Enhance JSP pages with a large group of custom JSP tags and STRUCTS frameworks. When you open a JSP in Code Editor, you can access all Struts tag libraries from the JDeveloper component options. For example, the Struts table tag is closely collaborate with Struts operation and table components, maintaining data item table status, and verifying input data.

· Unlike non-Struts JSP, when running applications, operational requests do not call another JSP or servlet directly. Instead, request URI specifying a logical page request, processing the request processor (RequestProcessor class) provided by the STRUCTS controller. The Struts Servlet bootable operation is displayed in the appropriate JSP page in the application, where this can be different depending on the return code. Struts framework custom tag library

Tag library

Description

Structs HTML

To create a Struts input table and other tags that are often useful when creating an HTML-based user interface.

Structs bean

Used to access components and their characteristics, define new components (these access), the rest of the page can access new components through scripting variables and page scope properties. Also provide a convenient mechanism for creating a request cookies value, title, and parameters.

Structs logic

Conditions for managing output text, cyclic use of object collections to repeat the output text and application flow management.

Structs Nested

Enables the Struts Custom Standard Moduler to Nested Context. This tag library is intended to make the mark identify the label around it, allowing the Struts system to provide the correct nested attribute reference.

Structs Templates

Three tags: PUT, GET and INSERT. The PUT tag moves the content to the request scope, and this content is retrieved in another JSP page (template) via the GET tag. This template contains INSERT tags.

Structs Tiles

Provide TILES tags. TILES is previously referred to as components.

"JDeveloper provides a set of custom tags that meet JSP 1.1, called Business Components for Java (BC4J) data tag. Custom tag library for BC4J data tag supports simple interaction with business components based on BC4J frameworks."

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

New Post(0)