This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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: 13018
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 agree. Here's the link:
subject: request object populate.
It's not a secret anymore!