/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License. You can
* obtain a copy of the License at
* or packager/legal/LICENSE.txt. See the License for the specific
* language governing permissions and limitations under the License.
*
* When distributing the software, include this License Header Notice in each
* file and include the License file at packager/legal/LICENSE.txt.
*
* GPL Classpath Exception:
* Oracle designates this particular file as subject to the "Classpath"
* exception as provided by Oracle in the GPL Version 2 section of the License
* file that accompanied this code.
*
* Modifications:
* If applicable, add the following below the License Header, with the fields
* enclosed by brackets [] replaced by your own identifying information:
* "Portions Copyright [year] [name of copyright owner]"
*
* Contributor(s):
* If you wish your version of this file to be governed by only the CDDL or
* only the GPL Version 2, indicate your decision by adding "[Contributor]
* elects to include this software in this distribution under the [CDDL or GPL
* Version 2] license." If you don't indicate a single choice of license, a
* recipient has the option to distribute your version of this file under
* either the CDDL, the GPL Version 2 or to extend the choice of license to
* its licensees as provided above. However, if you add GPL Version 2 code
* and therefore, elected the GPL Version 2 license, then the option applies
* only if the new code is made subject to such option by the copyright
* holder.
*/
package client;
import roster.RosterHome;
import util.LeagueDetails;
import util.PlayerDetails;
import util.TeamDetails;
/**
* @author unbekannt
* @version 1.0
*/
/** Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
*/
}
/** Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
*/
}
/**
*
* @param req
* @param res
* @throws ServletException
* @throws IOException
*/
throws ServletException, IOException {
try {
RosterHome.class);
//System.err.println("XXXX-1");
//System.err.println("XXXX-2");
// deleting all exisiting DB-entries
//System.err.println("XXXX-3");
//System.err.println("XXXX-4");
//System.err.println("XXXX-5");
//System.err.println("XXXX-6");
}
}
/**
*
* @param myRoster
*/
try {
}
} // getSomeInfo
/**
*
* @param myRoster
*/
try {
"Jack Patterson");
/****************************************************************
*
* new additions!!!!
*
****************************************************************/
}
// internal NULL - parameter for finder
}
} // getMoreInfo
/**
*
* @param list
* @param out
*/
while (i.hasNext()) {
}
} // printDetailsList
/**
*
* @param myRoster
*/
try {
// Leagues
"L1", "Mountain", "Soccer"));
"L2", "Valley", "Basketball"));
// Teams
"T1", "Honey Bees", "Visalia"), "L1");
"T2", "Gophers", "Manteca"), "L1");
"T3", "Deer", "Bodie"), "L2");
"T4", "Trout", "Truckee"), "L2");
"T5", "Crows", "Orland"), "L1");
// Players, Team T1
"P1", "Phil Jones", "goalkeeper", 100.00));
"P2", "Alice Smith", "defender", 505.00));
"P3", "Bob Roberts", "midfielder", 65.00));
"P4", "Grace Phillips", "forward", 100.00));
"P5", "Barney Bold", "defender", 100.00));
// Players, Team T2
"P6", "Ian Carlyle", "goalkeeper", 555.00));
"P7", "Rebecca Struthers", "midfielder", 777.00));
"P8", "Anne Anderson", "forward", 65.00));
"P9", "Jan Wesley", "defender", 100.00));
"P10", "Terry Smithson", "midfielder", 100.00));
// Players, Team T3
"P11", "Ben Shore", "point guard", 188.00));
"P12", "Chris Farley", "shooting guard", 577.00));
"P13", "Audrey Brown", "small forward", 995.00));
"P14", "Jack Patterson", "power forward", 100.00));
"P15", "Candace Lewis", "point guard", 100.00));
// Players, Team T4
"P16", "Linda Berringer", "point guard", 844.00));
"P17", "Bertrand Morris", "shooting guard", 452.00));
"P18", "Nancy White", "small forward", 833.00));
"P19", "Billy Black", "power forward", 444.00));
"P20", "Jodie James", "point guard", 100.00));
// Players, Team T5
"P21", "Henry Shute", "goalkeeper", 205.00));
"P22", "Janice Walker", "defender", 857.00));
"P23", "Wally Hendricks", "midfielder", 748.00));
"P24", "Gloria Garber", "forward", 777.00));
"P25", "Frank Fletcher", "defender", 399.00));
// Players, no team
"P26", "Hobie Jackson", "pitcher", 582.00));
"P27", "Melinda Kendall", "catcher", 677.00));
// Players, multiple teams
"P28", "Constance Adams", "substitue", 966.00));
}
} // insertInfo
}