aspose file tools*
The moose likes JSP and the fly likes jsp testing situation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp testing situation" Watch "jsp testing situation" New topic
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: 12803
    
    5
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp testing situation