Update of /cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/util
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4948/test/net/sourceforge/jwebunit/util

Modified Files:
        JettySetup.java ParamsServlet.java 
Log Message:
Removed JSP and decided to use web.xml. The jasper dependencies could probably 
be removed too, but I don't know how to disable the JspServlet.

Index: ParamsServlet.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/util/ParamsServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ParamsServlet.java  2 Jan 2006 16:31:26 -0000       1.1
--- ParamsServlet.java  3 Jan 2006 08:05:17 -0000       1.2
***************
*** 35,39 ****
              }
          }
!         out.write(" \n");
          out.write(HtmlHelper.getLinkParagraph("return", 
request.getHeader("Referer")));
          out.write(HtmlHelper.getEnd());
--- 35,39 ----
              }
          }
!         out.write(" </p>\n");
          out.write(HtmlHelper.getLinkParagraph("return", 
request.getHeader("Referer")));
          out.write(HtmlHelper.getEnd());

Index: JettySetup.java
===================================================================
RCS file: 
/cvsroot/jwebunit/jWebUnit/test/net/sourceforge/jwebunit/util/JettySetup.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** JettySetup.java     2 Jan 2006 16:31:26 -0000       1.2
--- JettySetup.java     3 Jan 2006 08:05:17 -0000       1.3
***************
*** 9,13 ****
  
  import org.mortbay.jetty.Server;
- import org.mortbay.jetty.servlet.ServletHandler;
  import org.mortbay.util.MultiException;
  
--- 9,12 ----
***************
*** 50,54 ****
              }
              jettyServer = new Server(jettyConfig);
-             addCustomHandlers(jettyServer);
              jettyServer.start();
          } catch (IOException e) {
--- 49,52 ----
***************
*** 62,78 ****
  
      /**
-      * Adds any extra handlers programmatically
-      * @param jettyServer2
-      * @deprecated remove this method if the webapp seems to work
-      */
-     private void addCustomHandlers(Server jettyServer) {
-         // Use web.xml instead so that the servlet can have the same path as 
the jsp
-         //ServletHandler handler= new ServletHandler();
-         //handler.addServlet("Params","/params.do",
-         //    ParamsServlet.class.getName());
-         //jettyServer.getContext("/").addHandler(handler);
-     }
- 
-     /**
       * Stops the Jetty server.
       * 
--- 60,63 ----



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to