JSPProvider uses JSPs. JSPProvider obtains content from one or more JSP files. A JSP file can be a static document (HTML only) or a standard JSP file with HTML and Java code. A JSP can include other JSP files. However, only the topmost JSP can be configured through the display profile. The topmost JSP files are defined through the contentPage, editPage, and processPage properties. See the Sun Java System Portal Server 7.1 Developer’s Guide for more information on how JSPProvider uses these JSPs. See also Chapter 27, JSPs in the default Directory for the complete list of JSPProvider Communication channels.
If you need to make other customizations, you do so in the JSP files themselves. The list of properties specific to JSPProvider and their description are:
Specifies the JSP that is used to generate the channel content (by using the getContent method).
Specifies the JSP that is used to generate the Edit page content (by using the getEdit method).
Specifies the JSP that is used to process the results of an Edit page (by using the processEdit method).
If true, makes JSPProvider show exceptions generated while processing the JSP as the channel output for the getContent and getEdit methods. This can be useful for developing and troubleshooting your portal.
URLScraperProvider takes a URL, opens a connection to the URL, and reads the contents into a buffer. The contents are then sent to the Desktop servlet, which displays it. URLScraperProvider uses the Rewriter to construct the URL information and the content received contains the presentation markup (if applicable).
The list of the properties specific to URLScraperProvider and their description are:
Specifies the URL to be scraped. The default value is /desktop/ipinfo.html.
Specifies the ID of the ruleset to be used by the Rewriter for rewriting content.
Specifies whether to forward cookies.
Specifies the input encoding to be used by URLScraperProvider to encode the scraped content.
Specifies the list of cookies to be forwarded by URLScraperProvider if cookiesToForwardAll is set to false.
Specifies the timeout for which the provider should wait to fetch content before displaying the timed out message.
The isEditable property for URLScraperProvider cannot be turned on (set to true) as this channel is, by default, not editable. There are no getEdit() and processEdit() methods defined for this provider. If you want edit functionality for URLScraperProvider, define another provider that extends URLScraperProvider. In so doing, you would need to implement the getEdit() and processEdit() methods, and also define the editType property. See the Portal Server Developer’s Guide for more information on extending the URLScraperProvider.