Hi Gangadhar

 

 

Im using this to attach a word document

 

 

 

                                            WebResponse response = (WebResponse) getResponse();

                                            response.setContentType("application/msword");

                                            // response.setHeader("Content-disposition", "attachment; filename="

                                            // + "Example.doc;");

 

                                            // when set header is added

                                            OutputStream myOutput = response.getOutputStream();

 

                                            myOutput.write(bais);

                                            myOutput.flush();

                                            myOutput.close();

 

Regards Nino

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gangadhar Vibhute
Sent: 8. juni 2006 05:58
To: wicket-user@lists.sourceforge.net
Subject: [Wicket-user] Wicket

 

Hi All

I want to use following methods of servlets in wicket how to use it

response.getWriter()
ServletOutputStream ouputStream =response.getOutputStream();

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to