Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript"> alert("Processing failed!"); </script>
- public class Servlet extends HttpServlet {
- public static final int ARRAY_SIZE = 65536;
- private static final int SEND_COUNT = 100000;
- protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException {
- String testData = "This is a fairly long piece of test text, running on and on and on, over and over.";
- final ServletOutputStream outputStream = response.getOutputStream();
- for (int i = 0; i < SEND_COUNT; ++i) {
- outputStream.println(testData);
- }
- throw new ServletException("Break it now");
- }
- }
Add Comment
Please, Sign In to add comment