Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Portal Server 6 2004Q2 Migration Guide 

Appendix D  
Tag and String Changes Made in Templates and JSPs by the Migration Tools


Note

All instances of the Sun™ ONE Portal Server 3.0 product refer to what were formerly known as the iPlanet™ Portal Server 3.0, Service Pack 3a, iPlanet™ Portal Server 3.0, Service Pack 4 products, and iPlanet™ Portal Server 3.0, Service Pack 5 products.


This appendix contains two tables illustrating the changes the Sun ONE Portal Server 3.0 Data Migration Tool Suite performs for tags and strings within the template and JSP™ files.

Table D-1 shows template tag and string changes by the migration tools. This table contains two columns. The first column lists the template tag or string in Sun ONE Portal Server 3.0. The second column lists the template tag or string in Sun ONE Portal Server 6.2.

Table D-1  Template Tag and String Changes Made by the Migration Tools 

Sun ONE Portal Server 3.0 Template Tag or String

 

Sun ONE Portal Server 6.2 Template Tag or String

User Tags:

User Tags:

borderSize

borderWidth

iwtDesktop-fontFace1

fontFace1

iwtUserInfoProvider-firstName

givenname

iwtUserInfoProvider-lastName

sn

iwtUser-SMTPServerName

iplanet-ps-netmail-smtp-server-name

iwtUser-IMAPServerName

iplanet-ps-netmail-imap-server-name

iwtUser-IMAPUserId

iplanet-ps-netmail-imap-userid

iwtUser-IMAPPassword

iplanet-ps-netmail-imap-password

 

 

User Strings:

 

Providers

 

If the source has:

*input.*hidden.*value=”iwtOptionsProvider”

the migration tools will substitute iwtOptionsProvider with:

[tag:frontContainerName]

and add:

<INPUT TYPE=HIDDEN NAME=”[tag:frontContainerName].containerEdit” SIZE=-1 VALUE=”option”>

If the source has:

*input.*hidden.*value=”iwtContentProvider”

the migration tools will substitute iwtContentProvider with:

[tag:frontContainerName]

and add:

<INPUT TYPE=HIDDEN NAME=”[tag:frontContainerName].containerEdit” SIZE=-1 VALUE=”content”>

If the source has:

*input.*hidden.*value=”iwtLayoutProvider”

the migration tools will substitute iwtLayoutProvider

with:

[tag:frontContainerName]

and add:

<INPUT TYPE=HIDDEN NAME=”[tag:frontContainerName].containerEdit” SIZE=-1 VALUE=”layout”>

If the source has:

*input.*hidden.*value=”iwtEditProvider”

the migration tools will substitute iwtEditProvider

with:

[tag:providerName]

If the Source has:

/DesktopServlet?action=content&provider=iwtFrontProvider

the migration tools will substitute

/DesktopServlet?action=content&provider=iwtFrontProvider

with

dt

 

 

Cancel button:

 

*input.*button.*onclick=”openFrontPage();

/OnClick=”location=’[tag:desktop_url]’”

 

 

Form Action:

 

*form.action=”DesktopServlet”

sub: action=”DesktopServlet”

ACTION=”dt”

.*fullurl.split.*”/DesktopServlet”

sub: “/DesktopServlet”

“dt”

action=attach.*provider=[tag:providername]

sub: action=attach.*provider=[tag:providername]

action=process&amp;provider=[tag:frontContainerName]&amp;

[tag:frontContainerName].channelAction=attach&amp;[tag:frontContainerName].targetProvider=[tag:providerName]

%hanaString

sub: $_

$hanaString{$_}

 

 

Login Channel:

 

file: /Login/display.html

a href.*module=Membership.*

sub: module=Membership

else

sub: .*input.*hidden.*userName.*req_uid.*

file: /iwtLoginProvider/display.html/

 

with: module=Membership&arg=newsession/

 

<INPUT TYPE=HIDDEN NAME=”arg” SIZE=-1 VALUE=”newsession”>

 

 

 

Content:

 

userTemplate.html

[tag:content]

userTemplate.html

“<!-- BEGIN TOP FULL PROVIDERS -->”;

     “<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>”;

  “<TR><TD VALIGN=TOP><CENTER>”;

  “[tag:fullTopContent]”;

  “</CENTER></TD></TR></TABLE>”;

 “<!-- END TOP FULL PROVIDERS -->”;

     “<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=4><TR>”;

   “<TD WIDTH=”[tag:leftWidth]%” VALIGN=TOP>”;

   “<!-- BEGIN LEFT PROVIDERS -->”;

   “[tag:leftContent]”;

  “<!-- END LEFT PROVIDERS -->”;

  “</TD>;

  “<TD WIDTH=”[tag:centerWidth]%” VALIGN=TOP>”;

 “<!-- BEGIN CENTER PROVIDERS -->”;

  “[tag:centerContent]”;

  “<!-- END CENTER PROVIDERS -->”;

  “</TD>”;

   “<TD WIDTH=”[tag:rightWidth]%” VALIGN=TOP>”;

  “<!-- BEGIN RIGHT PROVIDERS -->”;

“[tag:rightContent]”;

   “<!-- END RIGHT PROVIDERS -->”;

  “</TD></TR></TABLE>”;

“<!-- BEGIN BOTTOM FULL PROVIDERS -->”;

“<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0>”;

“<TR><TD VALIGN=TOP><CENTER>”;

“[tag:fullBottomContent]”; “</CENTER></TD></TR></TABLE>”;

“<!-- END BOTTOM FULL PROVIDERS -->”;

 

 

userTemplate.template - change bgcolor

333366

FFFFFF

tabs.html

remove 100% width

width

remove 100%

$offset = index($line, $search);

      $length = 12;

      $line = substr($line, 0, $offset-1) . substr ($line, $offset+$length)

 

Place </center> tag at beginning of file.

Place <center> tag at end of file.

 

tab.html/selectedTab.html

remove 100% width.

Table D-2 shows the JSP changes made by the ConvertJSP.pl script. This table contains two columns. The first column lists the JSP methods or elements in Sun ONE Portal Server 3.0. The second column lists the JSP methods or elements in Sun ONE Portal Server 6.1.

Table D-2  JSP Changes Made by the ConvertJSP.pl script 

Sun ONE Portal Server 3.0 JSP Methods or Elements

Sun ONE Portal Server 6.2 JSP Methods or Elements

loadProperties()

n/a

com.iplanet.portalserver.providers.jsp.JSPProvider

com.sun.portal.providers.jsp.JSPProvider

getStringProperty.*iwtUserInfoProvider.
*firstName.

getProviderContext().getStringAttribute
(“givenname”)

getStringProperty.*iwtUserInfoProvider.
*lastName.*

getProviderContext().getStringAttribute
(”sn”)

response.sendRedirect(.*new DesktopURL(.*)

response.sendRedirect(jspProviderReference.getProviderContext().getDesktopURL
(request))

iwtUser-IMAPServerName

iplanet-ps-netmail-imap-server-name

iwtUser-IMAPUserId

iplanet-ps-netmail-imap-userid

iwtUser-IMAPPassword

iplanet-ps-netmail-imap-password

*)DesktopURL(.*)=.*new DesktopURL.*

example: DesktopURL durl = new DesktopURL(p.getSession()).toString())

“String “.$2.” = (String)pageContext.getAttribute(”url”)

/images

[surl:/ps3.0Images/$1]

/href=”/docs/(.*?)”

[surl:/docs/$1]



Previous      Contents      Index      Next     


Copyright 2004 Sun Microsystems, Inc. All rights reserved.