You can migrate JSP Tablib uri, BTT customized tag, page import, and Java code in JSP file. The migration rules of taglib uri and BTT customized tag are defined in the JSP migration rule file. The migration rules of Java code are defined in Java migration rule file.
To migrate JSP file, perform the following steps:Following are 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() |