| By Rob Tiffany | Article Rating: |
|
| February 1, 1999 12:00 AM EST | Reads: |
9,975 |
Normally at this point in a software product review, I'd be giving you a long list of requirements in order to make sure this product worked with your system. Since ServletDebugger is 100% pure Java, the only requirement is a JDK 1.1 Java Development tool that runs on your particular operating system. In my case, I installed it on Windows NT Server 4.0. The InstallShield setup worked without a hitch and included the servletdebugger.jar file, a sample project and documentation in Microsoft Word, HTML, RTF and PDF formats.
The documentation gives an overview of ServletDebugger's features and capabilities, how to use it with the included sample project and a short tutorial in Servlet development. Since the sample project and associated documentation refer to Symantec's Visual Cafe for Java, I will describe how to set up and use ServletDebugger with Borland's JBuilder 2.
In order to debug Servlets from within JBuilder, you must first make servletdebugger.jar available to the development environment. With JBuilder open, select the "Tools" menu and click on "Default Project Properties...." Click the "Add" button on the "Paths" tab. In the "Select a Java library to add" dialog, click "New." In the "Name:" field type in "ServletDebugger." Click the "..." button to the right of the "Class Path" field. At the bottom of the "Edit LibraryClassPath" dialog, click the "Add Zip/JAR" button. Use the "Add Zip/JAR" dialog to locate "servletdebugger.jar" from your file system. Once you've found the file, click "OK" at the bottom of the "Edit LibraryClassPath." Click "OK" at the bottom of the "Select a Java library to add" dialog. Click "OK" to exit the "Default Project Properties" window.
With the environment set, create an empty project in JBuilder and then add "SnoopServlet.java" and "SnoopServlet
Debugger.java" from the sample Visual Cafe project directory. At this point you can set breakpoints in the
"SnoopServlet.java" Servlet, as seen in Figure 1, and then begin debugging it by selecting the "Run" menu and clicking on "Debug."
ServletDebugger gives you two ways to debug your Servlets. The normalModeTest method runs the Servlet and sends the output to the error stream System.err. The serverModeTest method uses a built-in HTTP server to allow you to submit multiple requests to your Servlet from your browser. From there you also have access to the Servlet Stress Tester shown in Figure 2 which allows you to GET and POST Form data to your Servlet for further debugging and performance analysis.
Now that Servlets have really taken off, ServletDebugger 2.0 fills a widespread debugging and performance testing need. You can now step through your code in the same way that you would if you were debugging a Java application. I think the documentation could use some beefing up in the areas of sending different request types to your Servlet using the normalModeTest method. Seasoned Java developers should have no trouble figuring things out, but a novice might. All in all, I find ServletDebugger 2.0 to be a great product that I personally find indispensable when it comes to building professional Web sites.
Published February 1, 1999 Reads 9,975
Copyright © 1999 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Rob Tiffany
Rob Tiffany is vice president of technology for True Quote (truequote.com), an online energy trading company. He has published numerous articles for a variety of magazines on topics ranging from Java servlets to wireless technologies. Rob is the author of Pocket PC Database Development with eMbedded Visual Basic from Apress.
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Cross-Platform Mobile Website Development – a Tool Comparison
- Three Buzzwords That Every CIO Hears but One They Should Listen To
- Write Once Run Anywhere or Cross Platform Mobile Development Tools
- Immersing into JavaScript Frameworks
- Workday Reportedly Prepping to Go Public
- Cloud Expo New York: The Java EE 7 Platform - Developing for the Cloud
- Book Review: Sams Teach Yourself Java in 24 Hours
- OpenOffice.com Lives
- Book Excerpt: Introducing HTML5
- Adobe Sends Flex to the Apache Foundation
- Five Years Waiting for JRE 7: Is It Justified? (Part 1)
- Book Excerpt: Java Application Profiling Tips and Tricks
- i-Technology in 2012: Five Industry Predictions
- It's the Java vs. C++ Shootout Revisited!
- Patterns for Building High Performance Applications
- OpenXava 4.3: Rapid Java Web Development
- The Next Web Architecture
- Asynchronous Logging Using Spring
- Java for Programmers (2nd Edition)
- Is Write Once Run Anywhere Ever Going to Be a Reality?
- A Cup of AJAX? Nay, Just Regular Java Please
- Java Developer's Journal Exclusive: 2006 "JDJ Editors' Choice" Awards
- JavaServer Faces (JSF) vs Struts
- The i-Technology Right Stuff
- Rich Internet Applications with Adobe Flex 2 and Java
- Java vs C++ "Shootout" Revisited
- Bean-Managed Persistence Using a Proxy List
- Reporting Made Easy with JasperReports and Hibernate
- Creating a Pet Store Application with JavaServer Faces, Spring, and Hibernate
- Why Do 'Cool Kids' Choose Ruby or PHP to Build Websites Instead of Java?
- What's New in Eclipse?
- i-Technology Predictions for 2007: Where's It All Headed?

















