在index.jsp
1.url传参数数
<a href= "../index1.jsp?keyword= '你好 ' "/ >
2.采用session 或request
<%
session.setAttribute( "keyword ", "你好 ' ")
% >在index1.jsp
在index1.jsp
1.
<%
String keyword = reuqest.getparamer( "keyword ");
% >
<input type= "text " value= <%=keyword% > >
2.
<%
String keyword = session.getAttribute( "keyword ");
% >
<input type= "text " value= <%=keyword% > >
jsp 之间传值
最新推荐文章于 2024-04-25 16:36:30 发布