Я создал страницу JSP, сервлета и Java, но теперь пытаюсь получить вывод MyAlgorithm (алгоритм Java) и отправить его обратно на мою страницу JSP. Однако это не работает ... я что-то здесь упускаю?
Пожалуйста, спросите меня, если вопрос неясен.
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String s_LocalDate = request.getParameter("s_JavascriptDate");
System.out.println(s_LocalDate);
algorithm MyAlgorithm = new algorithm();
MyAlgorithm.Days();
doGet(request, response);
}