学习了下hibernate的多对多,做了个例子
int customerid=ServletRequestUtils.getIntParameter(request, "id");
Customer customer=customerService.findUniqueBy("custormerid", customerid);
//重新构造移交后的业务员list
List<Employee> newempls=new ArrayList<Employee>();
String [] emplids=request.getParameterValues("it ...
实现的是查找功能,想把查找的结果在当前页面显示,可是查出来的数据就是不显示
这是controller,
protected ModelAndView onSubmit(Object command) throws Exception {
Exhibition exhibition=(Exhibition)command;
String name = exhibition.getExhibitioname();
String address = exhibition.getExhibitionaddress();
List exlist = exhibition ...
最近做项目时候,用到了SpringMVC
其中添加功能
代码如下:
public class AddController extends SimpleFormController {
private ExhibitionService exhibitionService;
public ExhibitionService getExhibitionService() {
return exhibitionService;
}
public void setExhibitionService(ExhibitionService exhibitionService) {
...
- 浏览: 237 次
- 性别:

- 来自: 青岛

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
多对多 中间表删除后再添 ...
也碰到了这个问题
-- by davis129 -
Spring中ModelAndView如何 ...
解决了,谢谢
-- by zetorli -
Spring中ModelAndView如何 ...
return new ModelAndView("redirect:/exhib ...
-- by fujohnwang






评论排行榜