Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple values being set to Javabean set Method.  RSS feed

 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP file, the getProperty values is NULL. I am trying to troubleshoot this issue.



JavaBean file (GetData).


Javabean Database

In this rs.next(), there are multiple movieNames and so forth being set to the respective Javabean. Could this be the issue ?


 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66186
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is the bean created? By the useBean action? If so, then all properties will be null unless something sets them. Or is the bean being created by a controller earlier in the process.

Also, I see no provisions for multiple values. Are the beans in a List?

P.S. GetData is a really bad name for the class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!