It's not a secret anymore!
The moose likes JSP and the fly likes request object populate. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "request object populate." Watch "request object populate." New topic

request object populate.

Prabodh Upreti

Joined: Jun 25, 2002
Posts: 3
Hi Folks.
I have a multipart form JSP template for file upload which also has couple of hidden input fields. This template posts to a second JSP template to perform the transaction. I generate some vaules in the second template that now need to be assigned to the submitted hidden field from the first template. I then pass the request object to a third party method that does the upload plus extra stuff.
My question: is there anyway I can update the hidden fields passed from the first template. The third party API reqires that the hidden field be populated.
I would appreciate your help. Thanks in advance.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12998
There does not seem to be any way to modify/add to the request parameters in the servlet API. You might be able to use an extension of the HttpServletRequestWrapper class to wrap the initial request and send a modified version onward.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: request object populate.
It's not a secret anymore!