Upgrading the Pet Store Application From WebLogic 6.1 Service Pack 3 to WebLogic
3. Change:
public void setNumItems(String numItemsStr) {
to:
public void setNumItems(int numItemsIn) {
4. Change:
public void setStartIndex(String startIndexStr) {
to:
public void setStartIndex(int startIndexIn) {
5. Save and close
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
C:\>cd
WL_HOME\samples\petStore\src\petstore\src\com\sun\j2ee\blueprin
ts\petstore\taglib\list
2. Open
WL_HOME\samples\petStore\src\petstore\src\com\sun\j2ee\blueprin
ts\petstore\taglib\list>notepad CartListTag.java.
3. Remove the following lines from
public void setNumItems(String numItemsStr) {
numItems = Integer.parseInt(numItemsStr);
}
numItems = numItemsIn;
}
startIndex = Integer.parseInt(startIndexStr);
}
startIndex = startIndexIn;
}
ListTag.java
CartListTag.java
super.setNumItems(numItemsStr);
.
. For example:
in a text editor. For example:
CartListTag.java
BEA WebLogic Server 7.0 Upgrade Guide
:
B-5
Need help?
Do you have a question about the WebLogic Server 7 and is the answer not in the manual?