File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Save value from select tag in action class

 
Vaishali Paramane
Ranch Hand
Posts: 107
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reply
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic