Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Save value from select tag in action class

 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me?
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for late reply Post how you were defined your Course class.
 
Vaishali Paramane
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic