<form name="myForm" action="MyServlet" method="POST">
Please enter your search query here:<br>
<input type="search" name="searchText" id="searchText" size="100" autocomplete="on" />
<input type="submit" name="search" value="Search" />
<textarea cols="30" rows="10">Result will be displayed here</textarea>
<a href="newhtml1.html">Click here</a> if result not displayed for your search query.
</form>
在我的小服务程序中
arg = request.getParameter("searchText");
out.println(arg);
但我得到的输出为空。