Link to home
Create AccountLog in
Avatar of prain
prainFlag for United States of America

asked on

How to debug Servlets

I am having a bit of a trouble to debug incoming HttpServletRequest parameters.
I cannot use the std. System.out.println() statements to see what the incoming values are.

Is there a way to this?
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Either use Log4J for logging or run the servlet in an IDE which allows Debugging and step through such as NetBeans
Please show us your code.
ASKER CERTIFIED SOLUTION
Avatar of radarsh
radarsh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of prain

ASKER

I am using tomcat 5.5
Avatar of prain

ASKER

radarsh,

Thanks for the tip. It actually creates stdout_20060320.log file that contains the System.out.println() output.

Thanks
prain
Avatar of radarsh
radarsh

Thanks.

________
radarsh