Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

request object populate.

 
Prabodh Upreti
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Prabodh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic