Hi everyone, I'm in a bit of a dilemma on how to connect the above mentioned three technologies. I'm still a student so please bare with me on this as I try to explain my problem.
For an assignment I have to create a simple form that uses JSP for the view with the Model and the controller being Servlets, the communication needs to be done using JavaBeans.
I've created a JSP powered form to accept a user name and a password which needs to be authenticated for the user to be able to post & view messages in the Forum I've used the following code to read the JSP textbox:
<%@page import="forum.beans.*" %>
<html>
<head>
<title>Login - Meassage Bord</title>
<%
String uname = request.getParameter("uname");
String pass = request.getParameter("pass");
%>
</head>
<body bgcolor="LightSteelBlue">
<font face="Calibri, Centuary Gothic, Times New Roaman">
<table border="0" align="center">
<form method="post" action="servlet\Controller">
<tr>
<td>Username: *</td>
<td><input name="uesername" value="<%=uname%>" type="text" /></td>
</tr>
<tr>
<td>Password: *</td>
<td><input name="password" value="<%=pass%>" type="password" /></td>
</tr>
<tr>
<td align="center"> <br /><br /><input type="submit" value="Login" /></td>
<td align="center"> <br /><br /><input type="reset" value="Clear" /></td>
</tr>
</form>
</table>
</font>
</body>
</html>
My questions are,
instead of what I've used should I use
<%request.getParameter("uesername");%>
secondly the how can transfer these values in to JSP tags??
Thank you very much or your time guys