java Programming Glossary: disposition
JSP page without HTML code for exporting data to Excel Sheet http://stackoverflow.com/questions/1755509/jsp-page-without-html-code-for-exporting-data-to-excel-sheet a team in Redmond ignores the filename part of the Content Disposition header and uses the last path part of the URL instead. share..
Simplest way to serve static data from outside the application server in a Java web application http://stackoverflow.com/questions/1812244/simplest-way-to-serve-static-data-from-outside-the-application-server-in-a-java as well and preferably also the Content Length and Content Disposition . Here's a basic example of such a servlet protected void doGet.. file.length response.setHeader Content Disposition inline filename file.getName BufferedInputStream input null..
Apache HttpClient making multipart form post http://stackoverflow.com/questions/2304663/apache-httpclient-making-multipart-form-post 1294919323195 Content Length 502 1294919323195 Content Disposition form data name number 5555555555 1294919323195 Content Disposition.. form data name number 5555555555 1294919323195 Content Disposition form data name clip rickroll 1294919323195 Content Disposition.. form data name clip rickroll 1294919323195 Content Disposition form data name upload_file filename Content Type application..
How to retrieve and display images from a database in a JSP page? http://stackoverflow.com/questions/2340406/how-to-retrieve-and-display-images-from-a-database-in-a-jsp-page resultSet.getInt contentLength response.setHeader Content Disposition inline filename name BufferedInputStream input null BufferedOutputStream..
Upload files with java http://stackoverflow.com/questions/2469451/upload-files-with-java UTF 8 writer.println boundary writer.println Content Disposition form data name paramToSend writer.println Content Type text.. paramToSend writer.println boundary writer.println Content Disposition form data name fileToUpload filename file.txt writer.println..
How to use java.net.URLConnection to fire and handle HTTP requests? http://stackoverflow.com/questions/2793150/how-to-use-java-net-urlconnection-to-fire-and-handle-http-requests writer.append boundary .append CRLF writer.append Content Disposition form data name param .append CRLF writer.append Content Type.. writer.append boundary .append CRLF writer.append Content Disposition form data name textFile filename textFile.getName .append CRLF.. writer.append boundary .append CRLF writer.append Content Disposition form data name binaryFile filename binaryFile.getName .append..
Forcing a save as dialogue from any web browser from JSF application http://stackoverflow.com/questions/2914025/forcing-a-save-as-dialogue-from-any-web-browser-from-jsf-application jsf share improve this question Set the HTTP Content Disposition header to attachment . This will pop a Save As dialogue. You..
Android file uploader with server-side php http://stackoverflow.com/questions/3204476/android-file-uploader-with-server-side-php twoHyphens boundary lineEnd dos .writeBytes Content Disposition post data name uploadedfile filename exsistingFileName lineEnd..
Convenient way to parse incoming multipart/form-data parameters in a Servlet http://stackoverflow.com/questions/3337056/convenient-way-to-parse-incoming-multipart-form-data-parameters-in-a-servlet param. writer.println boundary writer.println Content Disposition form data name param writer.println Content Type text plain.. displays the content for me 29772313742745 Content Disposition form data name name J.Doe 29772313742745 Content Disposition.. form data name name J.Doe 29772313742745 Content Disposition form data name email abuse@spamcop.com 29772313742745 What..
How to force browser to download file? http://stackoverflow.com/questions/6520231/how-to-force-browser-to-download-file Transfer Encoding binary response.setHeader Content Disposition attachment filename xxx fileName in.close bin.close din.close.. Transfer Encoding binary response.setHeader Content Disposition attachment filename xxx fileName ... ... File f new File fileName..
Reading mails sent from GMail http://stackoverflow.com/questions/12955010/reading-mails-sent-from-gmail j BodyPart bodyPart multipart.getBodyPart j String disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase.. j String disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase ATTACHMENT BodyPart.ATTACHMENT.. disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase ATTACHMENT BodyPart.ATTACHMENT doesn't work..
JavaMail check message content gmail IMAP http://stackoverflow.com/questions/12988799/javamail-check-message-content-gmail-imap j BodyPart bodyPart multipart.getBodyPart j String disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase.. j String disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase ATTACHMENT BodyPart.ATTACHMENT.. disposition bodyPart.getDisposition if disposition null disposition.equalsIgnoreCase ATTACHMENT BodyPart.ATTACHMENT doesn't work..
Images won't load if they are of high size http://stackoverflow.com/questions/12999353/images-wont-load-if-they-are-of-high-size Length String.valueOf len response.setHeader Content disposition inline filename file.png response.setContentType image png response.getOutputStream..
Best Practices to Create and Download a huge ZIP (from several BLOBs) in a WebApp http://stackoverflow.com/questions/16585384/best-practices-to-create-and-download-a-huge-zip-from-several-blobs-in-a-webap how to create an hidden iframe and use it with content disposition attachment to attempt to download the file instead of opening..
JSP page without HTML code for exporting data to Excel Sheet http://stackoverflow.com/questions/1755509/jsp-page-without-html-code-for-exporting-data-to-excel-sheet content type text csv response.setHeader content disposition attachment filename filename writeCsv csv ' ' response.getOutputStream..
How to upload files to server using JSP/Servlet? http://stackoverflow.com/questions/2422468/how-to-upload-files-to-server-using-jsp-servlet getFilename Part part for String cd part.getHeader content disposition .split if cd.trim .startsWith filename String filename cd.substring..
How to convert BufferedImage to Image to display on JSP http://stackoverflow.com/questions/2438375/how-to-convert-bufferedimage-to-image-to-display-on-jsp the content Content Type Content Length and or Content disposition . You can use ImageIO#write to write a BufferedImage to an OutputStream..
Forcing a save as dialogue from any web browser from JSF application http://stackoverflow.com/questions/2914025/forcing-a-save-as-dialogue-from-any-web-browser-from-jsf-application detection based on filename. response.setHeader Content disposition attachment filename name.xml The Save As popup magic is done..
How to set the content type on the servlet http://stackoverflow.com/questions/5216190/how-to-set-the-content-type-on-the-servlet like MSIE ignores the filename attribute of the content disposition. a href download filename.ext download filename.ext a If the..
Embedding images into html email with java mail http://stackoverflow.com/questions/5260654/embedding-images-into-html-email-with-java-mail checked the content type is correct and the image content disposition is set to inline Also Content ID needs to be globally unique..
Java servlet download filename special characters http://stackoverflow.com/questions/5325322/java-servlet-download-filename-special-characters isInternetExplorer windows 1250 utf 8 String dispositionFileName for byte b fileNameBytes dispositionFileName char b.. utf 8 String dispositionFileName for byte b fileNameBytes dispositionFileName char b 0xff String disposition attachment filename dispositionFileName.. b fileNameBytes dispositionFileName char b 0xff String disposition attachment filename dispositionFileName response.setHeader Content..
HTML5 File Upload to Java Servlet http://stackoverflow.com/questions/7114087/html5-file-upload-to-java-servlet getFilename Part part for String cd part.getHeader content disposition .split if cd.trim .startsWith filename String filename cd.substring..
Returning CSV file from Servlet using ServletOutputStream over HTTPS in Internet Explorer http://stackoverflow.com/questions/899858/returning-csv-file-from-servlet-using-servletoutputstream-over-https-in-internet null try response.setContentType text csv String disposition attachment fileName data.csv response.setHeader Content Disposition.. fileName data.csv response.setHeader Content Disposition disposition out response.getOutputStream byte blobData dao.getCSV setup..
File download using RichFaces http://stackoverflow.com/questions/9099102/file-download-using-richfaces no cache res.setDateHeader Expires 0 res.setHeader Content disposition attachment filename theFilename FileInputStream fis new FileInputStream..
|