Я хочу передать переменную в ContentList.jsp .... как мне это сделать?Могу ли я добавить его в диспетчер или запрос?Ответ является ссылкой?Поэтому, если я добавлю параметр в объект request
, он будет уже доступен в ContentList.jsp
?
public void loadView (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
RequestDispatcher dispatcher = request.getRequestDispatcher("ContentList.jsp");
response.setContentType("text/html;charset=UTF-8");
System.out.println("MyServlet::LoadView() success");
dispatcher.forward(request, response);
}
С Рождеством!