You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.3 KiB
46 lines
1.3 KiB
<%@page contentType="text/html"%>
|
|
<%@page pageEncoding="UTF-8"%>
|
|
<%--
|
|
The taglib directive below imports the JSTL library. If you uncomment it,
|
|
you must also add the JSTL library to the project. The Add Library... action
|
|
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
|
|
--%>
|
|
<%--
|
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
--%>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
|
|
<jsp:useBean id="javchat" scope="request" class="WebChat.JAVChat" />
|
|
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta http-equiv="refresh" content="5; url=connect.jsp" >
|
|
<title>Send Password</title>
|
|
</head>
|
|
<body>
|
|
<p>
|
|
<%
|
|
if (javchat.sendPasswordTo(request.getParameter("nickname"))) {
|
|
out.println("Your password has been sent");
|
|
} else {
|
|
out.println("Your nickname doesn't exist in the database");
|
|
}
|
|
%>
|
|
</p>
|
|
<%--
|
|
This example uses JSTL, uncomment the taglib directive above.
|
|
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
|
|
--%>
|
|
<%--
|
|
<c:if test="${param.sayHello}">
|
|
<!-- Let's welcome the user ${param.name} -->
|
|
Hello ${param.name}!
|
|
</c:if>
|
|
--%>
|
|
|
|
</body>
|
|
</html>
|
|
|