aspose file tools*
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 Spring in Action this week in the Spring 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
Author

the resultset is not rendered to the jsp page

Robin Kumar
Greenhorn

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
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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.


SCJP, SCWCD.
|Asking Good Questions|
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

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] [Bear's FrontMan] [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.

Thanks,
Kesava
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: the resultset is not rendered to the jsp page