Using Sun Java System Portal Server (hereinafter referred to as Portal Server), you can create your portal as an Frame with HTML tag
First, an embedded frame supports all features of the Frame in the Channel, and a regular Frame cannot. Thus, you can use other HTML features in this Portal, not just a Frameset tag.
Secondly, if a form is part of the Channel of the embedded Frame, the user input and subsequent processing are only in the Channel, which is the integrity of this Portal. Portal Server's URLSCraper cannot handle user input behavior, so if you enter information in a form field in a Urlscraper Channel, click Submit, Urlscraper detachs your entire Portal from the context. The Channel of an embedded frame does not have this problem; the processing of the response is only in the Channel in the Channel, and the portal is still unaffected.
Most of today's browser, such as Netscape Communicator 6.x, Internet Explorer 5.x, and Mozilla 1.2.x supports embedded labels (
This article will take you to create a Portal Channel as an embedded frame. Each step is detailed in the following chapter.
n Defining Provider Display Profile
n Defining Channel Display Profile
n Create a JSP page for Provider
N Add the Channel of the embedded Frame to MyfrontPage in TabContainer
(Note: This article assumes that you have installed example portal posted with Portal Server)
Define the Provider display configuration file
First, use XML to create a display profile for the Channel of the embedded Frame:
1. Create a DP-IFRAMEPROVIDER.XML file below your installation directory, the content is as follows
XML Version = "1.0" encoding = "UTF-8" Standalone = "no"?>
Name = "iframeprovider" Class = "com.sun.portal.providers.jsp.jspprovider" Version = "2"> Conditionalproperties> Conditionalproperties> Name = "description" Value = "this provider buy iframes" /> Properties> Provider> The value of the srcurl string can be the address of the website you want to arrange (for example, http://www.sun.com) or a file name of an HTML file on your server (for example, Example.html). You can change these parameters arbitrarily, such as Width, FontFacel, and more. 2. With root identity, run the following command to upload the display profile to Portal Server (command is written in one line) #dpadmin add -u dn-admin -w password -d distinguished_name dp-iframeProvider.xml To view the details of the dpadmin command, please consult the ITS Section in The Portal Server 6.2 Administrator's Guide. Define Channel's Display Profile Next, create a display configuration file for the Channel of the embedded Frame, follow these steps: 1. Create a file called DP-iframechannel.xml, the content is as follows XML Version = "1.0" encoding = "UTF-8" Standalone = "no"?> Name = "iframechannel" Provider = "iframeprovider"> Conditionalproperties> Conditionalproperties> Name = "description" Value = "this is an example of an inline-frame provider." /> Properties> Channel> As in the "Definition of the Display Profile of the provision", the value of srcurl can be the address of the website you want to arrange, or the file name of an HTML file on your server. You can adjust these parameters as follows. 2. Run the following command as root, upload the display profile to Portal Server (command is written in one line) # DPADMIN Add -u DN-Admin-W Password -d Distinguished_name DP-iframeProvider.xml Create a JSP page for this provider Create a JSP page for this embedded Frame, steps below: 1. Create a new directory under / etc / opt / sunwps / desktop / sampleportal name in the name of the provider. enter % CD / ETC / OPT / SUNWPS / SAMPLEPORTAL % MKDIR IFRAMEPROVIDER 2. Go to the directory of the provider % CD iframeProvider 3. Create a JSP page named iframe.jsp, the content is as follows: <% Copyright 2003 Sun Microsystems, Inc. All Rights Reserved Use is subject to license terms. -%> <% @ Taglib URI = "/ TLD / JX.TLD" prefix = "jx"%> <% @ Taglib URI = "/ TLD / Desktop.tld" prefix = "DT"%> <% @ Taglib Uri = "/ TLD / DesktopProviderContext.tld" prefix = "DTPC"%>