File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes using JSP recursively Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using JSP recursively" Watch "using JSP recursively" New topic

using JSP recursively

Vikram Anand

Joined: May 17, 2002
Posts: 10
I am writing a JSp to show a table. The table items are populated wih the some data which I get using a servlet from a database and put it in a session.
But my problem is the html code that is generated is not not complete for some data which i newly enter into the database. so i get only a pat of the table. it works fine all existing data.
please help me out. all my logic is failing over here.
Murilo Beriam

Joined: Jul 16, 2002
Posts: 6
Hi Vikram! I did not understand fully what is the problem you have but I will try to help.
First, check if the new data is commited. When you insert new data in you database, you should commit it.
Second, use the browse resource "view source code" and check if the code was interrupted for some reason. Try adding lines to debug, with some out.println("Hey, I'm here...") to know if the code is flowing like you supposed to.
Some browsers, like Netscape, don't show the entire page if some tags don't close, especially table tags. Verify this too.
I hope this stuff help you!
jQuery in Action, 3rd edition
subject: using JSP recursively
It's not a secret anymore!