You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
package call_pages;
|
|
|
|
import java.io.*;
|
|
|
|
import javax.servlet.RequestDispatcher;
|
|
import javax.servlet.ServletException;
|
|
import javax.servlet.annotation.WebServlet;
|
|
import javax.servlet.http.HttpServlet;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import call_pages.CALL_Fantasy;
|
|
|
|
|
|
|
|
/**
|
|
* Servlet implementation class stat
|
|
*/
|
|
@WebServlet("/tradeServlet")
|
|
public class CALL_Trade extends HttpServlet {
|
|
|
|
/**
|
|
* @see HttpServlet#HttpServlet()
|
|
*/
|
|
public CALL_Trade() {
|
|
super();
|
|
// TODO Auto-generated constructor stub
|
|
}
|
|
|
|
/**
|
|
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
|
|
*/
|
|
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
|
|
|
|
}
|
|
|
|
/**
|
|
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
|
|
*/
|
|
//appelé lors clic btn trade
|
|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
|
|
|
|
response.setContentType("text/html");
|
|
|
|
request.setAttribute("teamList", CALL_Fantasy.l1.leagueTeams);
|
|
|
|
RequestDispatcher rd = getServletContext().getRequestDispatcher("/PAGE_trade.jsp");
|
|
rd.forward(request, response);
|
|
|
|
}
|
|
|
|
}
|
|
|