superman
11-13-2006, 08:56 PM
hi
i want to use a popup window to confirm to a user they have been registered
this is my code
<%@ page contentType = "text/html" %>
<%@ page import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix = "sql" uri="http://java.sun.com/jstl/sql" %>
<html>
<head>
</head>
<body>
<c:if test="${param.confirm_reg == 'no'}">
<jsp:forward page="register.jsp" />
<!-- if details confirmed as incorrect forward to the register page -->
</c:if>
<c:if test="${param.confirm_reg == 'yes'}">
<!-- if details confirmed as CORRECT display popup and forward to the LOGIN page -->
<script>alert("You are now registered")</script>
<jsp:forward page="login.jsp" />
</c:if>
</body>
</html>
the problem is if the details are correct it forwards them straight to the login page. I want the popup to display Registered successfully or whatever and then forward to login page. any help would be appreciated
i want to use a popup window to confirm to a user they have been registered
this is my code
<%@ page contentType = "text/html" %>
<%@ page import="java.sql.*" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix = "sql" uri="http://java.sun.com/jstl/sql" %>
<html>
<head>
</head>
<body>
<c:if test="${param.confirm_reg == 'no'}">
<jsp:forward page="register.jsp" />
<!-- if details confirmed as incorrect forward to the register page -->
</c:if>
<c:if test="${param.confirm_reg == 'yes'}">
<!-- if details confirmed as CORRECT display popup and forward to the LOGIN page -->
<script>alert("You are now registered")</script>
<jsp:forward page="login.jsp" />
</c:if>
</body>
</html>
the problem is if the details are correct it forwards them straight to the login page. I want the popup to display Registered successfully or whatever and then forward to login page. any help would be appreciated