Search:

Type: Posts; User: surendran610

Search: Search took 0.15 seconds.

  1. Replies
    1
    Views
    405

    Validation for SpecialCharacter

    if (firstName.equals("")) {
    errors.put("firstName", "Please enter your first name");
    firstName = "";
    allOk = false;
    } else {
    String expression1 = "^[!,@,#,$,%,^,&,*,(,)]+$";...
  2. Re: How to validate username?this my register.jsp

    my question is "How to validate the existing username in database?"
  3. How to validate username?this my register.jsp

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page...
  4. Replies
    2
    Views
    881

    Problem in Servlet redirect

    String username=request.getParameter("username");
    ResultSet rs=st.executeQuery("select * from regis where username='"+username+"'");
    if(rs.next() ){
    response.sendRedirect("register.jsp");...
  5. Replies
    2
    Views
    607

    Re: Error in updating database

    i found that error. we have to insert this one unless the database will not auto increment
    ps.setObject(1,null);
  6. Replies
    2
    Views
    607

    Error in updating database

    Statement stm=con.createStatement();
    PreparedStatement ps=conn.prepareStatement("insert into regis values(?,?,?,?,?,?,?,?,?,?)");
    ps.setString(2, username);
    ps.setString(3, password);...
Results 1 to 6 of 6