I am trying to add a tag
JSP for hands-on. But it is not working.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>First JSP</TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<FORM Action="LoginProcess.jsp">
Username : <input type="text" name="uname" value="<%= request.getParameter("uname")%>"/>
Password : <input type="password" name="password"/>
<INPUT type="submit" value="Login"/>
</FORM>
</BODY>
</HTML>
I am saving this file as Login.html
If login fails it returns to the same page as a error page. It is supposed to show entered username in the Username box.
But is is showing as
Username : <%= request.getParameter("uname")%>
Password :
Now if i change the file name to Login.jsp it works fine!
Why is that so?
Please do reply!
Output is coming as not expected in .html file