I have created a hidden form element
Indeed there is something different.
request.getParameter will only work for hardcoded URL parameters specified in action attribute of element. In your case it does not contain any.
All other parameters will be incoded into the form itself, which you have to process by parsing HTTP request's input stream directly.
Fortunately, you are not the first and there are some good open-source libraries that take care of this.
I've been using Apache FileUpload. You create a parser and pass a request object to it and then iterate through different items. One of them will be your hidden field.