Unable to obtain text box value (html) in jsp -
<form name="myform" action="myservlet" method="post"> please enter 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 displayed here</textarea> <a href="newhtml1.html">click here</a> if result not displayed search query. </form>
in servlet
arg = request.getparameter("searchtext"); out.println(arg);
but getting output null.
it should be
<input type="text" name="searchtext" .../>
Comments
Post a Comment