#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0

    Question JSP just reloads on submit


    It is late and I am tired so maybe I am just missing something so simple.
    Here is my problem...
    I have a jsp page that connects to a Db in order to generate a dynamic dropdown menu. Which the user then selects an item from that menu. When clicking the SUBMIT button the user is suppose to be taken to another page that again connects to the DB but this time the query is based completely on the selection made from the dropdown menu from the first page.

    With all that said...when I click submit, the page just reloads, it does not go to the next page.

    WHY???

    Any and all help would be greatly appreciated
  2. #2
  3. Modding: Oracle MsSQL Firebird
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2001
    Location
    Outside US
    Posts
    8,527
    Rep Power
    538
  4. #3
  5. No Profile Picture
    Caffeine - Nicotine - Sugar
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Germany, Cologne
    Posts
    60
    Rep Power
    13
    Check if your form really points to the second page.

    <FORM action="secondPage.jsp">

    It might also help to dump the request-data in a table on the site, i think almost every jsp-book uses such an example to show how parameters work.

    If not, have a look at www.coreservlets.com
  6. #4
  7. No Profile Picture
    Caffeine - Nicotine - Sugar
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Germany, Cologne
    Posts
    60
    Rep Power
    13
    BTW: almost sure you screwed up your action-attribute in the FORM...
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2002
    Posts
    0
    Rep Power
    0

    Thanks for the info


    You are right, I did screw up the action. Like I said, it was late and my eyes simply weren't working.
    As it turns out it was VERY SIMPLE

    Action"nextpage.jsp" doesn't work as well as
    Action="nextpage.jsp"

    We are allowed one dumb question...right

IMN logo majestic logo threadwatch logo seochat tools logo