I have a problem . I have a screen where when i press a button it goes to the servlet , and there i am constructing a rtf or pdf file , then writing to the output stream and closing it. But after that i want to go back to the same jsp and display some message .
Can you please elaborate your requirement? Like what kind of message you want to display using a JSP page? And if its like that then why are you throwing the output to the user using response object in your first place?