You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by do...@apache.org on 2005/02/06 05:38:51 UTC

svn commit: r151541 - in incubator/beehive/trunk/netui: src/tags-html/org/apache/beehive/netui/tags/html/ test/webapps/drt/coreWeb/bugs/j160/ test/webapps/drt/coreWeb/bugs/j176/ test/webapps/drt/testRecorder/config/ test/webapps/drt/testRecorder/tests/

Author: dolander
Date: Sat Feb  5 20:38:49 2005
New Revision: 151541

URL: http://svn.apache.org/viewcvs?view=rev&rev=151541
Log:
Add a verification test that an <netui:area> can be used to submit a form.


Added:
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/Controller.jpf
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/index.jsp
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/redblue.gif   (with props)
    incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/J160.xml
Modified:
    incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
    incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Label.java
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf
    incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp
    incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java?view=diff&r1=151540&r2=151541
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java (original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java Sat Feb  5 20:38:49 2005
@@ -18,12 +18,11 @@
 package org.apache.beehive.netui.tags.html;
 
 import org.apache.beehive.netui.core.urls.MutableURI;
-import org.apache.beehive.netui.core.urls.URLRewriterService;
 import org.apache.beehive.netui.core.urls.URLRewriter.URLType;
+import org.apache.beehive.netui.core.urls.URLRewriterService;
 import org.apache.beehive.netui.pageflow.FlowController;
 import org.apache.beehive.netui.pageflow.PageFlowUtils;
 import org.apache.beehive.netui.pageflow.handler.Handlers;
-import org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils;
 import org.apache.beehive.netui.pageflow.internal.InternalConstants;
 import org.apache.beehive.netui.pageflow.internal.InternalUtils;
 import org.apache.beehive.netui.pageflow.scoping.ScopedServletUtils;
@@ -53,12 +52,7 @@
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.PageContext;
 import java.net.URISyntaxException;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.StringTokenizer;
+import java.util.*;
 
 /**
  * This tag represents an input form, associated with a bean whose

Modified: incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Label.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Label.java?view=diff&r1=151540&r2=151541
==============================================================================
--- incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Label.java (original)
+++ incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Label.java Sat Feb  5 20:38:49 2005
@@ -114,7 +114,6 @@
 
         // we assume that tagId will over have override id if both
         // are defined.
-        //String tagId = getTagId();
         if (_state.id != null) {
             scriptId = renderNameAndId((HttpServletRequest) req, _state, null);
         }

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/Controller.jpf?view=auto&rev=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/Controller.jpf (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/Controller.jpf Sat Feb  5 20:38:49 2005
@@ -0,0 +1,111 @@
+package bugs.j160;
+
+import javax.servlet.http.HttpSession;
+import org.apache.beehive.netui.pageflow.FormData;
+import org.apache.beehive.netui.pageflow.PageFlowController;
+import org.apache.beehive.netui.pageflow.Forward;
+import org.apache.beehive.netui.pageflow.annotations.Jpf;
+
+/**
+ * This is the default controller for a blank web application.
+ */
+@Jpf.Controller
+public class Controller extends PageFlowController
+{
+    private String _action;
+    private String _text;
+    public String getAction() {
+	return _action;
+    }
+
+    public String getText() {
+        return _text;
+}
+
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward begin()
+    {
+	_action = "begin";
+        return new Forward("index");
+    }
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward red()
+    {
+	_action = "red";
+        return new Forward("index");
+    }
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward blue()
+    {
+	_action = "blue";
+        return new Forward("index");
+    }
+
+    @Jpf.Action(
+        forwards={
+           @Jpf.Forward(name="index", path="index.jsp")
+        }
+    )
+    protected Forward post(Bean form)
+    {
+	_action = "post";
+	_text = form.getText1();
+        return new Forward("index");
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is created.
+     */
+    protected void onCreate()
+    {
+    }
+
+    /**
+     * Callback that is invoked when this controller instance is destroyed.
+     */
+    protected void onDestroy(HttpSession session)
+    {
+    }
+
+    public static class Bean extends FormData
+    {
+        private String text1;
+
+        private String text2;
+
+        public String getText1()
+        {
+            return text1;
+        }
+
+        public void setText1(String value)
+        {
+            text1 = value;
+        }
+
+        public String getText2()
+        {
+            return text2;
+        }
+
+        public void setText2(String value)
+        {
+            text2 = value;
+        }
+    }
+}

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/index.jsp?view=auto&rev=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/index.jsp (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/index.jsp Sat Feb  5 20:38:49 2005
@@ -0,0 +1,28 @@
+<%@ page language="java" contentType="text/html;charset=UTF-8"%>
+<%@ taglib prefix="netui" uri="http://beehive.apache.org/netui/tags-html-1.0"%>
+
+<netui:html>
+    <head>
+        <netui:base/>
+    </head>
+    <netui:body tagId="body">
+        <p style="color: green">This test verifies that a Area can be used to
+	submit a form.  The image and the map containing the area tags must be
+	within the form.  Below, by pushing on the red square you will submit
+	the form to the "post" action.
+        </p>
+        <netui:form action="post">
+           Text: <netui:textBox dataSource="actionForm.text1" /><br><br>
+	   <netui:image src="redblue.gif" alt="pick a color" usemap="#map1"
+		width="200" height="100"/>
+           <map id="map1" name="map1">
+             <netui:area formSubmit="true" shape="rect" coords="10, 10, 90, 90"/>
+             <netui:area action="blue" shape="rect" coords="110, 10, 190, 90"/>
+           </map>
+        </netui:form>
+        <hr>
+	<netui:span value="Action: ${pageFlow.action}"/><br>
+	<netui:span value="Text: ${pageFlow.text}"/><br>
+        </p>
+    </netui:body>
+</netui:html>

Added: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/redblue.gif
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/redblue.gif?view=auto&rev=151541
==============================================================================
Binary file - no diff available.

Propchange: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j160/redblue.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf?view=diff&r1=151540&r2=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf (original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/Controller.jpf Sat Feb  5 20:38:49 2005
@@ -14,9 +14,6 @@
 public class Controller extends PageFlowController
 {
     private String _action;
-    public String getAction() {
-	return _action;
-    }
 
     @Jpf.Action(
         forwards={

Modified: incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp?view=diff&r1=151540&r2=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp (original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/bugs/j176/index.jsp Sat Feb  5 20:38:49 2005
@@ -8,7 +8,7 @@
     <netui:body>
         <netui:span value="${pageFlow.action}" />
 	<netui:scriptContainer generateIdScope="true">
-           <netui:form action="post"></netui:form>
+           <netui:form tagId="foo" action="post"></netui:form>
         </netui:scriptContainer>
         <netui:form action="post"></netui:form>
     </netui:body>

Modified: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml?view=diff&r1=151540&r2=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml (original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/config/testRecorder-tests.xml Sat Feb  5 20:38:49 2005
@@ -3758,6 +3758,15 @@
          </features>
       </test>
       <test>
+         <name>J160</name>
+         <description>Verification that an Area can submit a form.</description>
+         <webapp>coreWeb</webapp>
+         <categories>
+            <category>bvt</category>
+            <category>jiriBugs</category>
+         </categories>
+      </test>
+      <test>
          <name>J161</name>
          <description>Verify that setting tagId and formSubmit on an anchor coexist.</description>
          <webapp>coreWeb</webapp>

Added: incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/J160.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/J160.xml?view=auto&rev=151541
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/J160.xml (added)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/J160.xml Sat Feb  5 20:38:49 2005
@@ -0,0 +1,348 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ses:recorderSession xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session">
+   <ses:sessionName>J160</ses:sessionName>
+   <ses:tester>Daryl</ses:tester>
+   <ses:startDate>05 Feb 2005, 09:03:30.312 PM MST</ses:startDate>
+   <ses:description>Verification that an Area tag can be used to submit a Form.</ses:description>
+   <ses:tests>
+      <ses:test>
+         <ses:testNumber>1</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            <ses:uri>/coreWeb/bugs/j160/Controller.jpf</ses:uri>
+            <ses:method>GET</ses:method>
+            <ses:parameters/>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>01787EA1AC0406E4077D106A2AFC56C4</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>---------------</ses:name>
+                  <ses:value>------------</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-charset</ses:name>
+                  <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us,en;q=0.5</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>keep-alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  <ses:value>JSESSIONID=01787EA1AC0406E4077D106A2AFC56C4</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>keep-alive</ses:name>
+                  <ses:value>300</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+&lt;html lang="en">
+
+    &lt;head>
+        &lt;base href="http://localhost:8080/coreWeb/bugs/j160/index.jsp">
+    &lt;/head>
+    &lt;body id="body">
+        &lt;p style="color: green">This test verifies that a Area can be used to
+	submit a form.  The image and the map containing the area tags must be
+	within the form.  Below, by pushing on the red square you will submit
+	the form to the "post" action.
+        &lt;/p>
+        &lt;form name="bean" id="Netui_Form_0" action="/coreWeb/bugs/j160/post.do" method="post">
+           Text: &lt;input type="text" name="{actionForm.text1}">&lt;br>&lt;br>
+	   &lt;img src="/coreWeb/bugs/j160/redblue.gif" width="200" height="100" usemap="#map1" alt="pick a color">
+           &lt;map id="map1" name="map1">
+             &lt;area href="/coreWeb/bugs/j160/post.do" shape="rect" coords="10, 10, 90, 90" onclick='anchor_submit_form("Netui_Form_0","/coreWeb/bugs/j160/post.do");return false;'>
+             &lt;area href="/coreWeb/bugs/j160/blue.do" shape="rect" coords="110, 10, 190, 90">
+           &lt;/map>
+        &lt;/form>
+        &lt;hr>
+	&lt;span>Action: begin&lt;/span>&lt;br>
+	&lt;span>Text: &lt;/span>&lt;br>
+        &lt;/p>
+    &lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+
+// **** Start the NetUI Framework Generated JavaScript ****
+
+// submit the form from an Anchor or ImageAnchor
+// Search for the form by actionName,
+// Replace the action with the passed in action
+// Submit the form
+function anchor_submit_form(netuiName, newAction)
+{
+  for (var i=0; i&lt;document.forms.length; i++) {
+     if (document.forms[i].id == netuiName) {
+        document.forms[i].method = "POST";
+        document.forms[i].action = newAction;
+        document.forms[i].submit();
+     }
+   }
+}
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_names == null)
+   var netui_names = new Object();
+netui_names.body="body"
+
+
+// method which will return a real id for a tagId,
+// the tag parameter will be used to find the idScope for
+// containers that may scope their ids
+function getNetuiTagName(id, tag)
+{
+   var idScope = getScopeId(tag);
+   if (idScope == "")
+      return netui_names[id];
+   else
+      return netui_names[idScope  + "__" + id];
+}
+
+// This method will walk the hierarchy from the pass element looking for a idScope.
+// The first idScope found will be returned or the empty string if a idScope is not found.
+function getScopeId(tag)
+{
+   if (tag == null || tag.getAttribute == null)
+      return "";
+   var attrVal = tag.getAttribute("netui:idScope");
+   if (attrVal != null)
+      return attrVal;
+   return getScopeId(tag.parentNode);
+}
+
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var idScope = lookupIdScope(tag,".");
+   return (idScope == "") ? id : idScope + id;
+}
+
+//Non-Legacy lookup method creating a fully qualified scope id
+function lookupIdScope(tag,sep)
+{
+   var val = "";
+   if (sep == null) sep = "";
+   while (tag != null &amp;&amp; tag.getAttribute != null) {
+      var attrVal = tag.getAttribute("netui:idScope");
+      if (attrVal != null)
+         val = attrVal + sep + val;
+      tag = tag.parentNode;
+   }
+   return val;
+}
+-->
+&lt;/script>&lt;/body>
+
+&lt;/html></ses:responseBody>
+         </ses:response>
+      </ses:test>
+      <ses:test>
+         <ses:testNumber>2</ses:testNumber>
+         <ses:request>
+            <ses:protocol>HTTP</ses:protocol>
+            <ses:protocolVersion>1.1</ses:protocolVersion>
+            <ses:host>localhost</ses:host>
+            <ses:port>8080</ses:port>
+            <ses:uri>/coreWeb/bugs/j160/post.do</ses:uri>
+            <ses:method>POST</ses:method>
+            <ses:parameters>
+               <ses:parameter>
+                  <ses:name>{actionForm.text1}</ses:name>
+                  <ses:value>text value</ses:value>
+               </ses:parameter>
+            </ses:parameters>
+            <ses:cookies>
+               <ses:cookie>
+                  <ses:name>JSESSIONID</ses:name>
+                  <ses:value>01787EA1AC0406E4077D106A2AFC56C4</ses:value>
+               </ses:cookie>
+            </ses:cookies>
+            <ses:headers>
+               <ses:header>
+                  <ses:name>-------</ses:name>
+                  <ses:value>----:-----------:-------------------------------------</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>---------------</ses:name>
+                  <ses:value>------------</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept</ses:name>
+                  <ses:value>text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-charset</ses:name>
+                  <ses:value>ISO-8859-1,utf-8;q=0.7,*;q=0.7</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>accept-language</ses:name>
+                  <ses:value>en-us,en;q=0.5</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>connection</ses:name>
+                  <ses:value>keep-alive</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>content-length</ses:name>
+                  <ses:value>33</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>content-type</ses:name>
+                  <ses:value>application/x-www-form-urlencoded</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>cookie</ses:name>
+                  <ses:value>JSESSIONID=01787EA1AC0406E4077D106A2AFC56C4</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>host</ses:name>
+                  <ses:value>localhost:8080</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>keep-alive</ses:name>
+                  <ses:value>300</ses:value>
+               </ses:header>
+               <ses:header>
+                  <ses:name>user-agent</ses:name>
+                  <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
+               </ses:header>
+            </ses:headers>
+         </ses:request>
+         <ses:response>
+            <ses:statusCode>200</ses:statusCode>
+            <ses:reason/>
+            <ses:responseBody>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+	"http://www.w3.org/TR/html4/loose.dtd">
+&lt;html lang="en">
+
+    &lt;head>
+        &lt;base href="http://localhost:8080/coreWeb/bugs/j160/index.jsp">
+    &lt;/head>
+    &lt;body id="body">
+        &lt;p style="color: green">This test verifies that a Area can be used to
+	submit a form.  The image and the map containing the area tags must be
+	within the form.  Below, by pushing on the red square you will submit
+	the form to the "post" action.
+        &lt;/p>
+        &lt;form name="bean" id="Netui_Form_0" action="/coreWeb/bugs/j160/post.do" method="post">
+           Text: &lt;input type="text" name="{actionForm.text1}" value="text value">&lt;br>&lt;br>
+	   &lt;img src="/coreWeb/bugs/j160/redblue.gif" width="200" height="100" usemap="#map1" alt="pick a color">
+           &lt;map id="map1" name="map1">
+             &lt;area href="/coreWeb/bugs/j160/post.do" shape="rect" coords="10, 10, 90, 90" onclick='anchor_submit_form("Netui_Form_0","/coreWeb/bugs/j160/post.do");return false;'>
+             &lt;area href="/coreWeb/bugs/j160/blue.do" shape="rect" coords="110, 10, 190, 90">
+           &lt;/map>
+        &lt;/form>
+        &lt;hr>
+	&lt;span>Action: post&lt;/span>&lt;br>
+	&lt;span>Text: text value&lt;/span>&lt;br>
+        &lt;/p>
+    &lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+
+// **** Start the NetUI Framework Generated JavaScript ****
+
+// submit the form from an Anchor or ImageAnchor
+// Search for the form by actionName,
+// Replace the action with the passed in action
+// Submit the form
+function anchor_submit_form(netuiName, newAction)
+{
+  for (var i=0; i&lt;document.forms.length; i++) {
+     if (document.forms[i].id == netuiName) {
+        document.forms[i].method = "POST";
+        document.forms[i].action = newAction;
+        document.forms[i].submit();
+     }
+   }
+}
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_names == null)
+   var netui_names = new Object();
+netui_names.body="body"
+
+
+// method which will return a real id for a tagId,
+// the tag parameter will be used to find the idScope for
+// containers that may scope their ids
+function getNetuiTagName(id, tag)
+{
+   var idScope = getScopeId(tag);
+   if (idScope == "")
+      return netui_names[id];
+   else
+      return netui_names[idScope  + "__" + id];
+}
+
+// This method will walk the hierarchy from the pass element looking for a idScope.
+// The first idScope found will be returned or the empty string if a idScope is not found.
+function getScopeId(tag)
+{
+   if (tag == null || tag.getAttribute == null)
+      return "";
+   var attrVal = tag.getAttribute("netui:idScope");
+   if (attrVal != null)
+      return attrVal;
+   return getScopeId(tag.parentNode);
+}
+
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var idScope = lookupIdScope(tag,".");
+   return (idScope == "") ? id : idScope + id;
+}
+
+//Non-Legacy lookup method creating a fully qualified scope id
+function lookupIdScope(tag,sep)
+{
+   var val = "";
+   if (sep == null) sep = "";
+   while (tag != null &amp;&amp; tag.getAttribute != null) {
+      var attrVal = tag.getAttribute("netui:idScope");
+      if (attrVal != null)
+         val = attrVal + sep + val;
+      tag = tag.parentNode;
+   }
+   return val;
+}
+-->
+&lt;/script>&lt;/body>
+
+&lt;/html></ses:responseBody>
+         </ses:response>
+      </ses:test>
+   </ses:tests>
+   <ses:endDate>05 Feb 2005, 09:03:44.531 PM MST</ses:endDate>
+   <ses:testCount>2</ses:testCount>
+</ses:recorderSession>
\ No newline at end of file