| Author |
jsp testing situation
|
Adrian Perry
Ranch Hand
Joined: Jul 21, 2005
Posts: 42
|
|
Hello, I have a situation where in the application server(tomcat) is sitting in a remote location. We are a team of devolper and we are sitting at a different location. I want to test my jsp pages. When we use System.out.println(), then the message is printed at the server side. Do we have any procedure where in we, sitting at a different locations can view the error messages or print messages or how do troubleshoot our jsp pages sitting a remote location. Regards, Adrian
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
|
Do you have access to the logs directory on the remote machine?
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
Try to make good use of custom errorpage output. You may be able to make custom exceptions that contain more information about the current state of your application and display that on a custom errorpage. Bill
|
Java Resources at www.wbrogden.com
|
 |
Adrian Perry
Ranch Hand
Joined: Jul 21, 2005
Posts: 42
|
|
Hello, Thanks for the reply. The method that I use is generally very crude, but it solves the purpose. I use: out.println("<script>alert('the variable = "+varible_in_jsp+"')</script>"); This I use everywhere, where ever I want a print statement. But surely, there must be better way. Regards, Adrian
|
 |
Adrian Perry
Ranch Hand
Joined: Jul 21, 2005
Posts: 42
|
|
Originally posted by Adrian Perry: Hello, Thanks for the reply. No I do not have any log file on the remote machine. The method that I use is generally very crude, but it solves the purpose. I use: out.println("<script>alert('the variable = "+varible_in_jsp+"')</script>"); This I use everywhere, where ever I want a print statement. But surely, there must be better way. Regards, Adrian
|
 |
 |
|
|
subject: jsp testing situation
|
|
|