2
Servlet code:
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
token = "teste";
request.setAttribute("token", token);
System.out.println(token);
RequestDispatcher view = request.getRequestDispatcher("teste.jsp");
view.forward(request, response);
}
Excerpt I want to print the parameter:
<p>Primeiro token adicionado é : $(requestScope.token) </p>
Instead of printing the content of the attribute it prints $(requestScope.token)
.