I open a child window for form inputs and upon successful submit, I'd like
to close this child window and also point the parent window to a specific
page. I got 404 error but don't know how to fix it. Please give some hints.

TIA,

Thinh

====================
Code in close_window.jsp
<%@ taglib uri='/WEB-INF/tlds/struts-template.tld' prefix='template' %>
<%@ taglib uri='/WEB-INF/tlds/struts-html.tld' prefix='html' %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<html>

<head>
<title>Closing window</title>
<html:base/>

<script language="JavaScript">
<!--
    window.opener.location.href="/jsp/home.jsp";
    window.close();
// -->
</script>
</head>
<body>
</body>
</html>

The url of the parent window showed //localhost:8080/jsp/home.jsp
It should be //localhost:8080/mywebapp/jsp/home.jsp


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to