Menu

TextField passing parameter

ann
2005-01-11
2013-06-03
  • ann

    ann - 2005-01-11

    Hello,

    this might be not a dbforms question, but...
    I have a dbform and a textField in it, where user enters username. Now I want to take that value and pass it to the next jsp which is defined in followUp and action attributes of dbforms.

    Right now, the value is not passed and I get null instead. But if I use simple <input type="text" name="username" size="10"/>, I get the values in next jsp by using <%String USERID=request.getParameter("username");%>.

    However above does not work with
    <db:textField size="10" id="username"  fieldName="CUSTOMER"/>

    Please, help

     
    • Henner Kollmann

      Henner Kollmann - 2005-01-11

      Look at the html code dbforms generates - we use special names inside dbforms.

      Cheers,
      Henner

       
    • Ivan Codarin

      Ivan Codarin - 2005-01-13

      Hi,
      you could also assign to an HIDDEN type in your current form the value of the username:

      <input type="hidden" name="my_readable_in_next_post_username" value="<%=CurrentRow_table_name.get("username_field_name_in_dbforms_config") %>/>

      then in the next JSP you could ask for that parameter with:

      <%String USERID=request.getParameter("my_readable_in_next_post_username");%>.

      Hope this helps
      Cheers
      Ivan

       

Log in to post a comment.

MongoDB Logo MongoDB