Inc. Server User Manual

Upgrading the Pet Store Application From WebLogic 6.1 Service Pack 3 to WebLogic
BEA WebLogic Server 7.0 Upgrade Guide B-5
3. Change:
public void setNumItems(String numItemsStr) {
numItems = Integer.parseInt(numItemsStr);
}
to:
public void setNumItems(int numItemsIn) {
numItems = numItemsIn;
}
4. Change:
public void setStartIndex(String startIndexStr) {
startIndex = Integer.parseInt(startIndexStr);
}
to:
public void setStartIndex(int startIndexIn) {
startIndex = startIndexIn;
}
5. Save and close ListTag.java.
Make the replacements in the rest of the files as follows:
1. In the command console, navigate to
WL_HOME\samples\petStore\src\petstore\src\com\sun\j2ee\blueprin
ts\petstore\taglib\list
. For example:
C:\>cd
WL_HOME\samples\petStore\src\petstore\src\com\sun\j2ee\blueprin
ts\petstore\taglib\list
2. Open CartListTag.java in a text editor. For example:
WL_HOME\samples\petStore\src\petstore\src\com\sun\j2ee\blueprin
ts\petstore\taglib\list>notepad CartListTag.java.
3. Remove the following lines from CartListTag.java:
public void setNumItems(String numItemsStr) {
super.setNumItems(numItemsStr);