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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Look at the html code dbforms generates - we use special names inside dbforms.
Cheers,
Henner
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