aspose file tools*
The moose likes Struts and the fly likes Save value from select tag in action class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Save value from select tag in action class" Watch "Save value from select tag in action class" New topic
Author

Save value from select tag in action class

Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
Hi
I am new in struts and hibernate.
I have Courses entity and from Courses has course_name which is I add to select tag
<s:select listValue="course_name" list="courses" label="Course : " name="studentbean.course"/>

I can see all courses name but when I am going to save, instead of course_name I am getting some object values( like org.database.beans.Courses@6b8e68ca)


How I can get course name in student bean.


Student.jsp



Thanks

Vaishali


SCJP, SCJD
Preparing for SCWCD
Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
Can anyone help me?
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Sorry for late reply Post how you were defined your Course class.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Vaishali Paramane
Ranch Hand

Joined: Mar 05, 2007
Posts: 106
Thanks for reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Save value from select tag in action class