spring 组合查询 报错? 400 报错
我的查询如下:
<!--申报列表查询框 -->
<div id="contentarea">
<div id="lb"><div id="rb"><div id="bb"><div id="blc">
<div id="brc"><div id="tb"><div id="tlc"><div id="trc">
<div id="content">
<form:form action="${pageContext.request.contextPath}/selectApplicationList" method="POST" modelAttribute="project">
<table cellpadding="0" cellspacing="0" id="viewTable" >
<tbody>
<tr>
<td class="label" valign="top">
<fmt:message key="project.projectname.title"/>:
</td><td>
<form:input id="project_projectName" path="projectName" cssStyle="width:300px;"/>
</td><td class="label" valign="top">
<fmt:message key="projectartical.responserid.title"/>:
</td><td>
<!--负责人下拉框选择-->
<form:select path="user.id" id="projectartical.responserid" cssStyle=" width:300px;">
<form:option value="" label="--Please Select"/>
<form:options items="${users}"/>
</form:select>
<!-- 负责人下拉框选择 -->
</td>
</tr><tr>
<td class="label" valign="top">
<fmt:message key="projectapplication.applicationdate.title"/><fmt:message key="from"/>:
</td><td>
<input id="projectApplication_applicationDate" name="applicationDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'<fmt:message key="date.format"/>'}" trim="true" promptMessage="<fmt:message key="date.format" />" invalidMessage="<fmt:message key="date.format.invalid" /> <fmt:message key="date.format" />." style="width:300px;"/>
</td><td class="label" valign="top">
<fmt:message key="to"/>:
</td><td>
<input id="project_endDate" name="endDate" dojoType="dijit.form.DateTextBox" constraints="{datePattern:'<fmt:message key="date.format"/>'}" trim="true" promptMessage="<fmt:message key="date.format" />" invalidMessage="<fmt:message key="date.format.invalid" /> <fmt:message key="date.format" />." style="width:300px;" />
</td>
</tr>
<tr>
<td colspan="4">
<span class="inputbutton"><input class="savebutton" id="save" type="submit" value="<fmt:message key="navigation.view"/>"/></span>
<script type="text/javascript">Spring.addDecoration(new Spring.ValidateAllDecoration({elementId:'save', event:'onclick'}));</script>
</td>
</tr>
</tbody>
</table>
</form:form>
</div>
</div></div></div></div>
</div></div></div></div>
</div>
control层是这么写的:
/**
* Select all Project entities by Project
*
*/
@RequestMapping("/selectApplicationList")
@ResponseBody
public ModelAndView selectApplicationList( @RequestParam String projectName,@RequestParam Integer username,@ModelAttribute Project project) {
ModelAndView mav = new ModelAndView();
mav.addObject("projects",myProjectService.findProjects(projectName, username));
mav.setViewName("_project/selectApplicationList.jsp");
return mav;
}
我点击查询时就报如下错:
type Status report
message
description The request sent by the client was syntactically incorrect ().
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。