File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes page not showing, need tips on debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "page not showing, need tips on debugging" Watch "page not showing, need tips on debugging" New topic
Author

page not showing, need tips on debugging

Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Hi Everyone, Have you ever run into problems like getting blank page and not getting http 500 errors? What are the steps you should be taking to find out where the problem is? My action class generate a list and set it as attribute in request scope. This list is very huge, has about little more than 2000 entries. Anyways, my jsp can't seem to display the list in a drop down menu. Could I be having out of memory problems? but the tomcat console didn't have any error messages like that. I am confused. Thanks for anyone's input
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
Have you tried to view the html source yet to see if the jsp is managing to return any data to your browser? You can also try putting system.out.println or other logging statements in the jsp to try to see what point its getting to.
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Thanks for your reply
I have println statement in action class and they print out reasonable output, I just thought about something, I have a <c:forEach> tag that iter thru the list. maybe I can print out the size of that in JSP. When blank happens, is it possible that the loop tag got somehow looping non-stop and cause the jsp to genrate blank?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

is it possible that the loop tag got somehow looping non-stop and cause the jsp to genrate blank?

If it's an infinitely-long list, perhaps, otherwise most likely not.
Davie Lin
Ranch Hand

Joined: Aug 05, 2007
Posts: 294
Hey, I found where my problem was,

the error was within the <c:forEach> tag and my error was really hilarious.. (at least to me) at the body of the tag, I had reference to the actual database column name instead of the Javabean's property. I don't know what I was thinking I just type the column name and forget about it.

Thanks for your help
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: page not showing, need tips on debugging