在您的Servlet数据中,将数据设置为request:
RequestDispatcher dispatcher = request.getRequestDispatcher("yourJspPage.jsp");
request.setAttribute("Name", "Temp"); // set your String value in the attribute
dispatcher.forward( request, response );
Run Code Online (Sandbox Code Playgroud)
在您的jsp页面中,访问如下request属性:
<table>
<tr>
<td><%=request.getAttribute("Name")%></td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助!