morgand     01/09/04 10:00:47

  Modified:    latka-webapp/webapp RunTestBody.jsp TestForm.jsp
  Log:
  stores last manual test
  
  Revision  Changes    Path
  1.3       +4 -0      jakarta-commons-sandbox/latka-webapp/webapp/RunTestBody.jsp
  
  Index: RunTestBody.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/latka-webapp/webapp/RunTestBody.jsp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- RunTestBody.jsp   2001/09/04 16:44:15     1.2
  +++ RunTestBody.jsp   2001/09/04 17:00:46     1.3
  @@ -8,5 +8,9 @@
   </latka:executeSuite>
   </pre>
   
  +<% // store away the test for when we return to the form
  +   props.setProperty("latka.testBody",
  +                     request.getParameter("testBody")); %>
  +
   <a href="TestForm.jsp">[Return to test form]</a>
   
  
  
  
  1.5       +14 -6     jakarta-commons-sandbox/latka-webapp/webapp/TestForm.jsp
  
  Index: TestForm.jsp
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/latka-webapp/webapp/TestForm.jsp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestForm.jsp      2001/09/04 16:47:56     1.4
  +++ TestForm.jsp      2001/09/04 17:00:46     1.5
  @@ -1,16 +1,24 @@
   <%@ page contentType="text/html" %>
  +<%@ taglib uri="http://jakarta.apache.org/taglibs/latka-taglib"; prefix="latka" %>
   
  +<latka:sessionProperties id="props"/>
  +
  +<% 
  +   // default LatkaSuite
  +   StringBuffer buff = new StringBuffer();
  +   buff.append("&lt;?xml version=\"1.0\"?>\n");
  +   buff.append("<suite defaultHost=\"${defaultHost}\" 
defaultPort=\"${defaultPort}\"\n");
  +   buff.append("  label=\"Latka manual test\">\n\n");
  +   buff.append("  <!-- place requests here -->\n\n");
  +   buff.append("</suite>");
  +%>
  +
   <h2>Run a Latka test</h2>
   <form method="post" action="ProcessTestBody.jsp">
   
   <textarea NAME="testBody" ROWS="18" COLS="70">
  -&lt;?xml version="1.0"?>
  -<suite defaultHost="${defaultHost}" defaultPort="${defaultPort}" 
  -  label="Latka self-diagnostics">
  -
  -  <!-- place requests here -->
   
  -</suite>
  +<%= props.getProperty("latka.testBody",buff.toString()) %>
   
   </textarea>
   <br>
  
  
  

Reply via email to