Q
quickcur
I am writing a login page with jsp.
Here is my login.jsp:
<form action="verif.jsp" method="post">
username..password...
</form>
Here is my verif.jsp:
//if username and password are right
<jsp:forward page="home.jsp"/>
//else
<jsp:forward page="login.jsp/>
When the password is right and after home.jsp is shown, the address bar
in IE still shows "http://localhost:8080/myapp/verif.jsp". How can I
change that to "http://localhost:8080/myapp/home.jsp"?
Thanks,
qq
Here is my login.jsp:
<form action="verif.jsp" method="post">
username..password...
</form>
Here is my verif.jsp:
//if username and password are right
<jsp:forward page="home.jsp"/>
//else
<jsp:forward page="login.jsp/>
When the password is right and after home.jsp is shown, the address bar
in IE still shows "http://localhost:8080/myapp/verif.jsp". How can I
change that to "http://localhost:8080/myapp/home.jsp"?
Thanks,