This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Bean error  RSS feed

 
Nair Anoop
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am returning an "array of beans" from a servlet to a JSP. When I try to display these in my JSP using <jsp:useBean> I get the default values for the bean, however if I use scriptlets, I get the correct values.

In the following fragment, the first scriptlet which uses student.getXXX() works perfectly and displays 3 records, wheread the second part which tries to achieve the same using a bean, displays 3 records with ID = -1 and name = "" since these are their default values.
Please assist me in this problem.
Thanks in advance,
Anoop

[This message has been edited by Nair Anoop (edited November 14, 2001).]
[This message has been edited by Nair Anoop (edited November 14, 2001).]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!