1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Rep Power

    2 forms and 2 servlets

    i have a HTML document which has 2 forms, form1 and form2. each of those have submit buttons. I want to access 2 seperate servlets when i click on those 2 different submit buttons. its doesnt seem to be working. but when i have just 1 form in my HTML document and have this foll command it works fine:
    <form name=Form2 METHOD=GET ACTION="servlet/HelloWorld">
    ghow do i make this work when there is more than 1 form in the HTML document?
  2. #2
  3. No Profile Picture
    Clueless llama
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Feb 2001
    Lincoln, NE. USA
    Rep Power
    Two forms in a document having different actions should work fine. You cannot embed one form in another. Post your code complete and mayeb we can help you better.

IMN logo majestic logo threadwatch logo seochat tools logo