日期:2014-05-17  浏览次数:20779 次

急急急....100分..
JSP
HTML code

<input type="text" name="stu.subjects.subjectsName"/>




Subjects
Java code

private int subjectsId;
private String subjectsName;




Student.java
Java code

private int stuId;
    private String stuName;
    private String stuAddress;
    private Date stuJoinTime;
    private Card card;
    private Class clss;
    private Set<Subjects> subjects = new HashSet<Subjects>();



action
Java code

private Student stu = new Student();



我想通过 stu.subjects.subjectsName放入属性..
但我想在service层的取到subjectsName的值
。可是该怎么取?





------解决方案--------------------
想法是好滴但是实现不了
------解决方案--------------------
楼主的想法应该实现不了吧