BEA WebLogic Server 7 Manuel d'utilisateur Page 111

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 146
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 110
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);
Vue de la page 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 145 146

Commentaires sur ces manuels

Pas de commentaire