问题
使用Spring MVC框架开发搜索表单。
/WEB-INF/pages/tools/webserver.jsp – Spring mvc + form tag
<form:form method="post" commandName="searchForm"
action="${pageContext.request.contextPath}/tools/webserver/"
class="navbar-form pull-left" id="search-form">
Type a website :
<form:input path="domainName" type="text" width="165px"
placeholder="example - google.com" />
<button type="submit" class="btn btn-top-margin">Search</button>
</form:form>
Spring Controller
@Controller
@RequestMapping(value = "/tools", method = RequestMethod.GET)
public cla