Enterprise Portal uses a one-click content capture technology that allows users to create portlets from Web accessible sources.
Using this technology, you use links to navigate to the page that has the information from which you want to create a portlet. The content capture technology allows you to select only those pieces of information that you want use in a portlet.
Because of the numerous technologies that are used, you cannot always navigate to every possible page and successfully create portlets from all Web accessible sources. You may not be able to navigate to some sites or pages within sites. You may also not be able to create a portlet using the exact piece of information that is viewable to the user on a Web page. Especially challenging are Web sites that use JavaScript to generate some or all of an HTML page, and sites that use frame-based solutions.
Once you create a portlet using a Web accessible source, the portlet gets the current information from the source. If the layout of the information on the original page changes, the underlying technology attempts to locate the correct piece of information that represents the portlet’s content. However, the portlet can lose its content or obtain an incorrect piece of information because of changes in the source site. In such a case, the portlet is broken and must be re-created.
The one-click capture strategy allows you to target a specific area on a Web page from which to capture content. Click the left mouse button in a suitable area, indicated by a shadow-box that trails the mouse arrow. The capture option window displays the “best guess” capture from the specified area.
Web elements do not store static HTML, but instead are defined by a CCL statement that dynamically retrieves the content from its source. The CCL statement consists of:
The location of the Web page, and
The feature tag of the captured content. This feature tag is an electronic signature of the content and consists of a feature list that describes the content.
When Web Studio executes the CCL statement, the capture technology parses the Web page and returns the piece of content that matches the feature tag. If an exact match cannot be determined, the content with the closest matching feature tag is returned. This allows the Web Studio to render the correct Web element even though the content, location, or formatting of the source may have changed.
Creating a Web element
Select Web Element. You see the Web Element Definition window. Enter a beginning uniform resource locator (URL)—the Internet address—of the Web content you want to capture in the Location text field, then click Find.
When the location you entered displays, navigate to the page that contains the desired content, then click Next.
Select the capture strategy from the Format drop-down list. This example uses the one-click capture format, so you select the content you want to capture. If you chose one of the other formats, only those elements that match the chosen format display.
If necessary, select one, both, or neither (the default) of the two options to the left of the Back button. These options (CapAll and ACX) are not exclusive; they are separate, independent options.
CapAll – captures all the GETs and POSTs. Using the default settings during navigation and capture, EP remembers the final URL of the page that you want to capture and play back, along with any intermediate URLs that are generated by HTTP “POST” requests. These latter URLs typically result from submitting form data. During playback, these URLs are submitted in order and the resulting page content returned to the client browser.
However, for some sites this is not sufficient to guarantee that enough context is provided to the Web server to return the desired page. In this situation, it may be necessary to include other intermediate HTTP requests (that is, HTTP “GET” requests) so that the correct client state can be established and the desired page returned. If you suspect this situation is occurring, select this option to request that during the capture phase, EP should record all significant HTTP requests against the Web server from which the page is being captured.
ACX – passes HTML and JavaScript through the ActiveX component. Problems can occur when you capture and play back content that is partially or completely generated by client-side JavaScript. If you suspect that this is occurring on a site with content you want to capture, select ACX to specify that the capture technology use ActiveX controls to force the rendition of any embedded JavaScript and generate the entire HTML content. When using this option, all JavaScript is removed from the page content returned to the client browser, and the resulting HTML is static.
To capture all GETs and POSTs, and also pass the final HTML or JavaScript through the ActiveX component, select both CapAll and ACX.
The CapAll and ACX options are only available in Web
Studio from Portlet Builder. These options are not selectable from
within Portal Interface. Once you select CapAll or ACX for a portlet,
the options cannot be unselected, and a portlet rendered with these
options will always play back in Portal Interface with these options
used.
Using CapAll and/or ACX can cause a significant performance hit during portlet play back, as more interaction is required between the EP server and the Web server from which the content is being captured.
Click Next.
When you create a portlet using one-click capture, and
the portlet content contains numerous links, some of the links may
not work properly due to underlying JavaScript or redirect code
in the link content.
Click the left mouse button in a suitable area, indicated by a shadow-box that trails the mouse arrow and says “Select it”.
The capture option window displays the “best guess” capture from the specified area.
Click the light blue button to the left of the option you want to select. The button changes to a darker blue when you select it. Click Next.
Enter a name for the element, then click Finish. You return to the Portal Builder where the new element displays.
Regardless of the element type, the procedure to save
the element and portlet is the same. See“Saving portlets”.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |