Javatpoint Logo

I'm a beginer .I'm creating a servlet based singup,signin and recovery based combination project .i'm successfully done with signup but when i tried to make signin program im facing this error...plz help

By: ranjit*** On: Sat Jun 18 16:58:42 IST 2016     Question Reputation0 Answer Reputation0 Quiz Belt Series Points0  0Blank User

.....index.html....
<a href="Signin">SignIn</a>
<center>
<h2>Google SignUp </h2><br><br>
First Name<input type="text" name="tfn" size="20"/><br><br>
Last Name<input type="text" name="tln" size="20"/><br><br>
User Name<input type="text" name="tun" size="20"/><br><br>
Password<input type="password" name="tpw" size="20"/><br><br>
<input type="submit"/><br>

.......Signin.java....
public class Signin extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title>login form</title>");
out.println("</head>");
out.println("<body>");
out.println("<form action='./Signin' method='post'>");
out.println(" Email ID:<input type='text' name='email' /><br/>");
out.println(" Password:<input type='text' name='pass' /><br/>");
out.println(" <input type='submit' value='login' />");
out.println("</form>");
out.println("</body>");
out.println("</html>");
out.println("<a href='Login'>Login</a>");

error..message HTTP method GET is not supported by this URL.....
what to do to resolve

Up0Down

 
first you need to create the tables in database after create regestration.jsp and create registrattion.servlet and connect the code jdbc.htt://localhost:8080/:"usename","password";
like this
search in google
Image Created0Down

By: [email protected] On: Tue Jun 28 17:17:34 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No
 
You wrote your code in doPost method. write it in doGet method.Everything will be fineImage Created0Down

By: [email protected] On: Wed Sep 28 15:45:23 IST 2016 Question Reputation0 Answer Reputation0 Belt Series Points0 0User Image
Are You Satisfied :0Yes0No