• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp testing situation

 
Adrian Perry
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have access to the logs directory on the remote machine?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic