Hey!

One more way?

Send back a response to the browser for example like this:
Put in chunks of Debug code that can be
easily commented out by changing the /* */ with // //.

/*Debug only
//Set MIME content-type for response
response.setContentType("text/html");

//Obtain a print writer to output our HTML form
PrintWriter out = response.getWriter();

java.util.Enumeration ep = props.propertyNames();
String epStr = null;

out.println("<p>");
while (ep.hasMoreElements()) {
    epStr = (String)ep.nextElement();
    out.println("Property  "+epStr+" is "+props.getProperty(epStr)+"<br>");
}
out.println("</p>");
out.flush();
*/

Sans adieu,
Danny Rubis


"Stammler, Peggy (Frankfurt)" wrote:

> hello,
> is there any way to debug servlet code?
> thanks
> ciao peggy
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to