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

the resultset is not rendered to the jsp page

 
Robin Kumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to render the result set from the servlet to the jsp page to view the feedback stored in the DB but when i am clicking on the view feedback link a blank page gets opened and the url shows the name of the servlet... i have used thee same logic to rendered many tables and it worked but this time its not working and no exception is thrown by the compiler as well... kindly help me ASAP
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch

I don't understand what you mean by there is no compiler error. Do you mean there is no exception in the server logs?
How are you passing the data to the JSP page? In a bean?
Please post your code so that we get a better understanding of the problem.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64981
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A blank page is almost always the result of an exception being thrown. Check the logs.

And if you are passing a resultset to a JSP page, you're definitely doing it wrong. Resultsets should be read and closed as quickly as possible, storing the data in normal Java collections and beans. That is what should be passed to a JSP.
 
Kesava Krishna
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Robin,

Please check before the result set is rendered there is a chance you might have closed the statement and connection objects unknowingly.
Also I agree to Bear Bibeault that you should not share the result set over the components, better approach is prepare beans and load the result set in to beans and then share those beans across components.

Thanks,
Kesava
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic