I have problém with send servlet to JSP
I have "web.xml".
<servlet>
<description></description>
<display-name>optimalizace5</display-name>
<servlet-name>optimalizace5</servlet-name>
<servlet-class>
BucketServlet2
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>optimalizace5</servlet-name>
<url-pattern>/optimalizace5</url-pattern>
</servlet-mapping>
and BucketServlet2:
public class BucketServlet2 extends HttpServlet{
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse resp)
throws ServletException, IOException {
request.getSession().setAttribute("vysledek_list", "10101101");
getServletContext().getRequestDispatcher("/optimalizace4.jsp").forward(request, resp);
super.doPost(request, resp);
}
}
and JSP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Optimalizační úlohy</title>
</head>
<body>
<FORM action="/Eliminace_kosiku/optimalizace5" method="post">
Data:
<%=request.getParameter("vysledek_list")%>
</form>
</body>
</html>
For send from JSP to servlet is working. But send from servlet to JSP not working. I dont know, what is wrong??