• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

the resultset is not rendered to the jsp page

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic