I have a jsp page. In that jsp have one form for the user activate functionality by selecting the users. and also i have one search field for search the user like
<div class="quick-search-input-container">
<label id="quick-search-input-label" for="quick-search-input">Quick Search</label><s:textfield name="quick-search-input" id="quick-search-input" maxlength="50" value=""></s:textfield>
<input type="button" class="grey-button" name="quick-search-submit" id="quick-search-submit" value="Search" onclick="searchSubmit()" />
</div>
by the on click i wrote an action for the search but i want to search when i click a enter button through the keyboard.
shall i have a form inside the form? Is it a best practice ? or any other solutions