Hi I have a frameset (frameset.html) that has three frames (top.html,
right.html, left.html).
In the top.html there is a link, when I click it, a dialog window called
select2.html pops up, there is a textfield and a button, when I input a text
in the textfield and hit the button OK, this sould call two scripts
edit.jsp (to output in the left.html frame) and showidlabel.jsp ( to output
in the top.html frame), But both jsp with :
String ID request.getParameter("editnode");
I got null for ID
Here is the select2.jsp testing code :

<html>
<head>
<title>Select Node to Edit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
function testReload()
{
        window.opener.parent.left.location.href = "edit.jsp";
      window.opener.parent.top.location.href = "showidlabel.jsp";
        window.close();
}
function Close_onclick() {
window.close();
}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
if(win.window.focus){win.window.focus();}
}

</SCRIPT>

</head>

<body bgcolor="#FFFFFF">
<form  name="form1" method="get" onsubmit="testReload();">
  <table width="98%" border="0">
    <tr bgcolor="#FFFFCC">
      <td><font size="2" color="#3333FF">Enter node to edit or choose
&quot;Browse&quot;
        or &quot;Search&quot; to find one.</font></td>
    </tr>
    <tr>
      <td>
        <table width="100%" border="0">
          <tr>
            <td bgcolor="#FFFFCC">
              <input type="text" name="editnode" >
            </td>
            <td>
              <table width="100%" border="0">
                <tr bgcolor="#FFFFCC">
                  <td>
       <a href="http:browse.jsp"
onclick="NewWindow(this.href,'browsename','400','320','yes');return false">
Browse</a>

                  </td>
                </tr>
                <tr bgcolor="#FFFFCC">
                  <td>
       <a href="http:search.html"
onclick="NewWindow(this.href,'searchname','400','320','yes');return
false">Search</a>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>
        <table width="99%" border="0">
          <tr>
            <td bgcolor="#FFFFCC">
              <input type="submit" name="Submit3" value="Ok">
            </td>
            <td bgcolor="#FFFFCC">
<input type="button" value="cancel" onclick="window.close()">
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
</body>
</html>

And here is the testing showidlabel.jsp code :
<%@ page import="ConceptBean" errorPage="error.jsp" %>
<jsp:useBean id="concept" class="ConceptBean" scope="request />

<%
   String ID = request.getParameter("editnode");
   // concept.getConcept(String ID);
out.println("The ID is " + ID);
%>


<!--
<jsp:getProperty name="concept" property="id_number" />
<jsp:getProperty name="concept" property="label" />
-->

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to