Okay sure, the code isn't a problem but I just want to make sure the specifications are correct.
What is known?
Servlet A and Servlet B exist
Servlet A receives input from user.
Servlet A sends information to Servlet B.
(This is where I need clarification)
Servlet A stores the response to a file? (Or is it Servlet B)
Also, what information should be saved to the file? Just the request parameters?
If you could reply to those questions, I'll probably have the code within a day (mainly because I'm going home in a few minutes and I probably won't get a chance to write the code after I leave until tomorrow morning).
Originally posted by Tanu M:
Thanks for the response, But it's not solving my problem. Actually I want second servlet to send the response to the first one and then First servlet should save the response to an (HTML)file.
I tried using ServletOutputStream but could not proceed with that.
It would be great if you could send the code too.