• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTTP Status 500 Error

 
Shay Given
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have just joined JavaRanch because I think that it is the one of the best forums to get help with Java.

This is my first post on JavaRanch, so if I make mistakes regarding the posting rules, please forgive me.

OK, here is my problem.

I have created a jsp file which does the simple task of reading data from a mysql database and displaying the results on a web page. Please see below:




However, each time I run the jsp file in the browser with my localhost as server, I get an HTTP Status 500 error.

I have searched online for a solution and I could not find any. Could somebody please help me?

Regards
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. 500 means server-side error - there should be a full exception stack trace in the log files. Most likely it's some problem with the DB connection.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome!

And here's a helpful hint: Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

I've gone ahead and added the code tags for you. See how much easier the code is to read? (Especially as opposed to making the code red?)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!