I am struggling with something really basic. I have created a index.jsp file
<html>
<body>
<form action="welcome.jsp">
<input type="text" name="uname">
<input type="submit" value="go"><br/>
</form>
</body>
</html>
And a welcome.jsp page
<html>
<body>
<%
String name=request.getParameter("uname");
out.print("welcome "+name);
%>
</form>
</body>
</html>
When i try to run the application containing just these two files. Then, i get the index.html page generated fine. However, once i put the user name and press submit then it gives 404 error.
I know this is very basic but please me to this to reach something bigger.
PS: i have tried really hard to find the answer through googling but could not find.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire