[code="java"]
javabean:
public class ManualInfo {
private int id;
private String code;
private String name;
}
public class EditionInfo {
private int id;
private String name;
private int dispNo;
}
@Controller
public class ManualController {
@RequestMapping(value = "/getManualList", method = RequestMethod.GET)
public void getManualList(@ModelAttribute("manualinfo") ManualInfo manualinfo, @ModelAttribute("editionInfo")EditionInfo editionInfo){
.........
}
[/code]
[code="html"]如果页面表单提交:
那么两个对象里的name变量都会被赋值,但是我想仅仅往其中一个对象赋值name,
该怎么办?难道只能在两个javabean中定义不同名字的变量?[/code]