[jboss-user] [Beginners Corner] - Re: allowing users to access server-created files

PeterJ do-not-reply at jboss.com
Mon Jul 30 15:53:09 EDT 2007


Here is one possibility that comes to mind. Deploy your app exploded (). With the exploded directory, have a directory (for example, csv) and place the generated file there, then generate a web page with a link to the generated file: csv/tempfilename.csv. The user clicks the link to get the file.

Another possibility is to, within your servlet, change the content type on the ServletResponse to be "text/plain" (not sure if "text/csv" is valid, you could try it) and set the response content to be the csv file contents.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068873#4068873

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068873



More information about the jboss-user mailing list