File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

request object populate.

Prabodh Upreti
Greenhorn

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.
Prabodh
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12681
    
    5
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


Java Resources at www.wbrogden.com
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: request object populate.
 
Similar Threads
java data structures
validation problems with multipage form
very common form functionality
Passing hidden values from one tab to another
FORM Question