J2ee

General Information about J2EE Applications are discussed here.

General J2EE

J2EE Web Applications - Cookies

Cookies are discussed here

App Vs Web Servers

EJB3

Java Persistence API (JPA)

Servlets

  • Whenever you are sending the data from Server side, you can specify the file content through setContentType() method of HttpServletResponse as below.
response.setContentType("contentType","text/csv");
  • However, if you want to specify the Output fileName, you have to set a header as follows
response.setHeader("Content-Disposition", "attachment; filename=<NameOfYourFile.extension>");

For more information about the Content-Disposition header, you can read this RFC -> http://www.ietf.org/rfc/rfc1806.txt
The thread which helped me in getting the complete stuff was -> http://www.berthou.com/us/2007/09/29/test-english/ and http://forums.sun.com/thread.jspa?threadID=486951

RFC for Form based file upload in HTML -> http://www.ietf.org/rfc/rfc1867.txt

JMS

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.