You can migrate JSP Tablib uri, WebSphere® Multichannel Bank Transformation Toolkit customized tags, page import, and Java code in JSP files. The migration rules of taglib uri and WebSphere Multichannel Bank Transformation Toolkit customized tags are defined in the JSP migration rule file. The migration rules of Java code are defined in the Java migration rule file.
To migrate JSP file, perform the following steps:To migrate a JSP file, do the following steps:
The following tables describe the samples for each migration type:
Before migration | Migration rule | After migration |
---|---|---|
<%@ taglib uri="/WEB-INF/dse.tld" prefix="dse" %> | <taglibRule oldTagUrl="/WEB-INF/dse.tld" newTagUrl="/WEB-INF/btt.tld" oldTagPrefix="dse" newTagPrefix="btt"/> | <%@ taglib uri="/WEB-INF/btt.tld" prefix="btt" %> |
Before migration | Migration rule | After migration |
---|---|---|
<dse:label text="jspMigrationToolTest"/> | <tagRule oldTitle="dse:label" newTitle="btt:label"
oldKey="text" newKey="text_new" oldVal="jspMigrationToolTest" newVal= "jspMigrationToolTest_new"/> |
<btt:label text_new="jsp MigrationToolTest_new"/> |
Before migration | Migration rule | After migration |
---|---|---|
<%@page import="com.ibm.dse" %> | <pageImport oldPattern="com.ibm.dse" newPattern="com.ibm.btt"/> | <%@page import=“com.ibm.btt"%> |
Before migration | Migration rule | After migration |
---|---|---|
com.ibm.dse.base. JavaExtensions.getAlphaUniqueCode() |
<simpleRule oldItem="com.ibm.dse" newItem="com.ibm.btt" /> | com.ibm.btt.base. JavaExtensions. getAlphaUniqueCode() |