I am writing an HTML which is linked to the Servlet. I am able to get the output of the name and city fields in the console . However, i am unable to get the details of the textarea in the console.
HTML program -
Servlet program -
how to get the comment section in the textarea printed the eclipse console with method = "post"
posted 1 year ago
here the comment section i am getting null. I name and city get shown by the submit button but how to view the comment section
Actually, in HTML5 the form attribute should cause the textearea to be included in the form even though it is physically outside the form. I have never done this so I can't vouch for how well it is implemented in the browsers.
In this case, there is clearly no reason why the text area needs to be outside the form, so the simplest fix is to move it to within the form.