• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is servlet not printing the html if i change the location of println statement?

 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


When I run the above code , the html is not printed ?
Please help me is there any problem with the code?

Thanks
 
Stefan Evans
Bartender
Posts: 1822
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The standard reason nothing would be getting printed is if the code is not being run.
In this case the most likely reason for the code not running is that an exception occurs before execution gets to that point.

Check your logs for any error messages.
There will be a problem with your database connection.
Possibly the datasource isn't configured properly, or you have the wrong username/password.
The error message and stack trace in the logs should tell you more.

 
Rajiv KumarRai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Am using the Weblogic 11gR1(10.3.4) sever to deploy the servlet through eclipse

Can you give me the idea where the error logs and stack trace would be created?

Thanks
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have added the server in your Eclipse servers, then I think the Eclipse console will print the exception which you have caught.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!