servlet取jsp中的参数,为什么有时候取得到,有时候取不到呢?我的代码是这样。。。
twos 2003-03-23 12:12:59 jsp:
......
<%
...
String test=new String("china");
...
%>
<input type="text" name="testname" value="<%=test%>" style="width: 0; height: 0">
servlet:
......
String test1=request.getParameter("test");
......
有时候取得到,再运行有时候就取不到,ft!
哪位还有更好的办法,保证每次都取得到呢?