日期:2014-05-20 浏览次数:20740 次
public String FeedbackListAll(HttpServletRequest request, HttpServletResponse response){
availableItems = tfeedbackService.findAll(Tfeedback.class);
Iterator<Tfeedback> it = availableItems.iterator();
Map map = new HashMap();
List<Tfeedback> list = new ArrayList<Tfeedback>();
while(it.hasNext())
{
list.add(it.next());
}
map.put("feedback", list);
request.setAttribute("feedbackmap",map);
return "/auth/feedbacklist";
}
<table border="0" cellspacing="0" cellpadding="0" width="1000" >
<tr>
<td valign="top" align="center" bgcolor="#6da9fb">用户反馈列表</td>
</tr>
</table>
<c:forEach items="${feedbackmap}" var="feedback" begin ="0" end = "1" varStatus="var">
${feedback.title}
</c:forEach>
@RequestMapping(params="method=login")
public String login(@Valid User user, BindingResult userResult, @Valid Log log, BindingResult logResult, ModelMap map){
if(userResult.hasErrors()
------解决方案--------------------
logResult.hasErrors()){
return "error";
}
//System.out.println(webRequest.getParameter("username"));
//System.out.println(request.getParameter("password"));
System.out.println(log.getBirthday());
String result = "success";
map.put("user", user);
if(!ls.isExist(user)){
result = "fail";
}
return result;
//return "redirect:http://www.baidu.com";
}