java and HTML problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • star111792
    New Member
    • Jan 2007
    • 26

    java and HTML problem

    Hello all,

    i m doing networking in java. i m trying to build a client/server appplication in which i m trying to create a simple login page. tasks that im trying to do are in following sequence:

    ---client establishes connection with server
    ---server displays login page
    ---client enters username and password and submits the form
    ---server checks username and password by reteiving usernames and passwords from DB
    ---server displays welcome or invalid login message to client according to the situation

    now i have established connection and server is sending HTML code of login form to client. but my problem is that how will i detect that client has pressed the "Submit" button??? how will i extract values from textfields(whic h i have made in HTML) at the client side??? either this code should be in java or HTML??? plz help me....

    thanks
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by star111792
    Hello all,

    i m doing networking in java. i m trying to build a client/server appplication in which i m trying to create a simple login page. tasks that im trying to do are in following sequence:

    ---client establishes connection with server
    ---server displays login page
    ---client enters username and password and submits the form
    ---server checks username and password by reteiving usernames and passwords from DB
    ---server displays welcome or invalid login message to client according to the situation

    now i have established connection and server is sending HTML code of login form to client. but my problem is that how will i detect that client has pressed the "Submit" button??? how will i extract values from textfields(whic h i have made in HTML) at the client side??? either this code should be in java or HTML??? plz help me....

    thanks
    Read about JSPs and Servlets

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      @OP: I removed the "urgent ..." part from the topic title. I bet your lecturer didn't
      tell you that it was urgent so why should it be urgent to us?

      kind regards,

      Jos

      Comment

      Working...