EL JSP does not work

Asked

Viewed 95 times

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).

1 answer

4

Browser other questions tagged

You are not signed in. Login or sign up in order to post.