I am sending html table containing data from servlet to my jsp page. My servlet code is following:
String html = "<table><thead><th>Serial</th><th>MAC</th></thead>"
+ "<tbody>
+ "<tr>1000234<td></td><td>9845HM98</td></tr>"
+ "<tbody>"
+ "</table>";
request.setAttribute("responselDetails", html);
ServletContext context= getServletContext();
RequestDispatcher rd= context.getRequestDispatcher("/jsp/Details.jsp");
rd.forward(request, response);
jsp:
<% if (request.getParameter("responsePeripheralDetails") != null) { %>
<%= request.getParameter("responsePeripheralDetails") %>
<% } %>