I need to display the data from a servlet in a jsp page. At the moment I have this:
SERVLET:
Object data = text;
request.setAttribute("data", data);
request.getRequestDispatcher("index.jsp").forward(request, response);
JSP:
<p>result: ${data}</p>
In the JSP there is a simple text box and a send button. At the moment when I push the send button the response is being overwritten ervery time.
How can I do it that after every search I see the result in a new line? I want also see the previous searches...
Thanks a lot!