i have created 2 files
<HTML> <HEAD> <TITLE>Enter your name</TITLE> </HEAD> <BODY> <H1>Enter your name</H1> <FORM NAME="form1" ACTION="chat123.jsp" METHOD="POST"> <INPUT TYPE="TEXT" NAME="text"> <INPUT TYPE="SUBMIT" VALUE="Submit"> </FORM> </BODY> </HTML>
<HTML> <HEAD> <TITLE> Using Java in JSP </TITLE> </HEAD> <BODY> <H1>Using Java in JSP</H1> Your Name is <% out.println(request.getParameter ("text")); %> </BODY> </HTML>
When i click on the submit button , the text in the text box is supposed to be printed but its not.
Besides this code works properly only in IE , when i run it in Firefox , instead of executing the chat123.jsp file , all the source code is displayed.
I ran all the code in Wampserver .
i have no idea where i went wrong , i would be glad if you guys can help me out.