In my jsp page I have list box which is populated from db.
i have other text box "comp_action"into which I have to put above selected value. I do this by using onchange="return pend_assign() of 'pend_desc' list box
On Submit I call function onSubmit(form) and call another jsp page
In onSubmit function when I check value of "comp_action" using alert(Form1.comp_action.value) I get the correct value which was set from list box
But in FieldReportSubmit.jsp when I read
I get "comp_action" value as null.
[ December 28, 2008: Message edited by: Tushar tej ]
Originally posted by Bear Bibeault:
Aside from commenting on what poor practice it is to perform data manipulation in the JSPs -- especially database access -- be sure that the text field is part of the form that is being submitted.
Hi Bear Bibeault
Can you Please tell me the correct way for accessing db data or provide some link
I found out my mistake.
Before assigning value from list box to text box I was disabling the text box. If I dont disable text box I get the value of text box in next jsp page. Now instead of disabling text box I hide it