File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes the resultset is not rendered to the jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "the resultset is not rendered to the jsp page" Watch "the resultset is not rendered to the jsp page" New topic

the resultset is not rendered to the jsp page

Robin Kumar

Joined: Mar 07, 2013
Posts: 13
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

Joined: Jun 06, 2007
Posts: 2851

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.

|Asking Good Questions|
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

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.

[Asking smart questions] [About Bear] [Books by Bear]
Kesava Krishna
Ranch Hand

Joined: Sep 03, 2012
Posts: 42
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.

I agree. Here's the link:
subject: the resultset is not rendered to the jsp page
It's not a secret anymore!