I have submit button named savePrescription. What I want is when this button
is clicked it would save the data then return the pdf file via stream
response and redirect to a page. 
So far I was able to save the data and return the pdf in target="_blank" but
I don't know how would I redirect the existing page into another page.


I tried the following: this redirects but doesn't open the stream response.
StreamResponse onSuccessFromSavePrescription() {
                        //savedata
                        response.sendRedirect("index");
                        InputStream is = prescriptionPdf.pdfGeneration(patient, 
visit);
                        return new 
PDFStreamResponse(is,"Prescription-"+visit.getId());
                        
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/streamresponse-and-redirect-tp5144924p5144924.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to