Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

page not showing, need tips on debugging

 
Davie Lin
Ranch Hand
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 294
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic