Thanks Sergey for your help.
I'm opening a little popup window ( window open(...) ) with a textfield, the
user can file with some input. then he clicks the "Submit Request"-button. This
button should send the input to the javabean and close the popup widow, so the
user can go on in the parent window.
<jsp:useBean id="aaa" class="aaa.A" scope="session">
</jsp:useBean>
<jsp:setProperty name="A" property="*"/>
<HTML>
<HEAD>
<TITLE>test</TITLE>
<script language="javascript">
function goon(b){
if (b.charAt(b.length-1)=="M")
{
.....
}
else{
//document.bbb.action="";
document.bbb.submit();
//window.close(); // when I'm not using comment here( with
netscape) it only closes the window, but it does not sent the data
}
}
</script>
<base target="_parent">
</HEAD>
<body>
.....
<INPUT type="text" name="c" value="0" size="25"">
.....
<P>
<FORM method="get" name="bbb">
<INPUT name=Submit type=button value="Submit Request"
onClick="javascript:goon(document.bbb.c.value)">
/FORM></P>
</body>
</HTML>
and the java bean:
package aaa;
public class A{
private double c = 0;
public double getC()
{
return c;
}
public void setC(double cc)
{
c = cc;
}
}
The Problem is to submit the data AND to close the popup window in Netscape4.x,
in MSIE 5.0 it works fine.
I would be very thankful for any help to solve this problem.
Thanks herb.
===========================================================================
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