I want to get the value of disabled text box in ou开发者_如何学JAVAr next jsp but I am getting a NULL value. Any idea what might be going wrong?.
Input fields marked with disabled="disabled"
never send their value to the server when the form is posted. You could use the readonly="readonly"
attribute in order to still make the field not editable by the user but send the initial value to the server when the form is submitted.
You can't get disable property value into server side. You need to run javascript to fetch disabled value into servlet.
精彩评论