944,131 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 5139
  • JSP RSS
Jun 20th, 2005
0

JSP pages not showing up

Expand Post »
Hi,

This is one of those dumb newbie questions, I'm afraid. I'm trying to learn Servlets/JSP by making a small application that allows you to register yourself as a user. I'm using the latest tomcat version for this, and I'm using a linux environment.

For some reason, when I try to access any JSP page, I just get an empty page with the source code "<html><body></body></html>". No error message, nothing. If I rename the page to .htm (the first page is just a form anyway), it shows up. I tried deploying other jsp applications in the servlet container, and that worked. I even tried copying it from the example webapp to my webapp, but even then it didn't work.

I've heard that jsp pages can be precompiled, but AFAIK they don't have to be - they should get compiled the first time they are requested anyway, right?

I've been all over the net for this, and I'm really stuck, so I hope someone will be able to help me. Any suggestions would be most appriciated.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
keibi is offline Offline
9 posts
since Jun 2005
Jul 9th, 2005
0

Re: JSP pages not showing up

Try waiting a few seconds. They take a few seconds to compile, but only the first time or after you change it.
Reputation Points: 17
Solved Threads: 5
Posting Whiz in Training
mmiikkee12 is offline Offline
274 posts
since Oct 2004
Jul 10th, 2005
0

Re: JSP pages not showing up

Thanks for your reply. I already found out what was wrong, though - I had jasper-runtime.jar in my lib-catalogue, and that caused, for some reason, the jsp pages to show up blank. Weird, but at least I found out.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
keibi is offline Offline
9 posts
since Jun 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Java Server Faces help!!!
Next Thread in JSP Forum Timeline: best design





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC