kourosh parsa wrote:I'm calling the sevlet from another servlet. The parent servlet is creating a document. The child servlet is creating the image. so how would I send a post request from the parent servlet?
If both servlets are part of the same application;
- Load data in a value object
- Load the value object as an attribute in the httpservletrequest
- Then forward to the second servlet - there you retrieve the value object and that's it, no long urls and redirect. No session cleanup - the request is garbage collected as soon as the current roundtrip is finished.
D.