Java API for JSP/Servlet programming : Java Swing GUI builder by XML
File upload JSP/Servlet example. multipart/form-data. CGI FORM input validation. JDBC/JavaMail. Java Swing GUI builder by XML.
This Java API parses InputStream of HTTP POST request with multipart/form-data encode.
By this Java API, only the single method call is enough for your file upload Servlets or JSP.
Another solution... file upload by e-mail :
The file upload by multipart/form-data works in most cases. However, a growing number of the WAP phones are shipped with the digital cameras, i.e. the users can take the pictures by their mobile phones and send them to their friends by the e-mails. And, by OOP Pop3Receiver API, you can take the advantage of this feature. It is the Java API for connecting to the POP3 servers through JavaMail API, and you can extract the file attachment from the received e-mail. Be ready for file upload from WAP phone!
Do you need BufferedImage?
When the image file is uploaded to your Servlet, its binary contents will be available in JPEG, PNG or GIF format. To manipulate the uploaded image file, those binary contents should be converted to a BufferedImage object. After your Servlet finishes to work on a BufferedImage object, it should be serialized back into the binary contents in JPEG, PNG, GIF or WBMP format to be send back to the web browser or to be stored into the SQL table. ImageUtil implements methods for converting the binary contents in typical image formats to/from a BufferedImage object.
Source code example of File Upload JSP/Servlet by multipart/form-data
This example source code consists of only one JSP and its helper classes.
It is the simplest example in the world for how to upload the files by Servlet/JSP through multipart/form-data!
OOP MimeParser is the Java API for File upload Servlet/JSP.
With the easy programming interface of this API, a few lines of code will be enough for your file upload Servlet/JSP.
This API parses the multipart/form-data for the file upload request from the CGI FORM. You can specify the maximum size of the file to be uploaded. If the larger file is uploaded, this API throws the exception. In this case, your Servlet/JSP can catch the exception and show the appropriate message.
in the property files. So, you can change the maximum file size and width/height, and can add/delete the acceptable mime-types (Content-Types) without updating the source code of your JSP/Servlet!
Java Swing GUI builder by XML. Free Source code examples for LayoutManager of Java Swing GUI. How to use JToolBar with BorderLayout. How to align JComponents by GridLayout and BoxLayout.
File upload Servlets/JSP by multipart/form-data. Free source code example for how to upload files by Servlets/JSP. You can restrict the file size and the mime-types.
Servlet can save the uploaded files under the specified directory. You can get the binary contents and the Content-Type of the uploaded files.
Example for how to send e-mails from Servlets/JSP by JavaMail API. Servlets/JSP can send e-mails at the scheduled time. By multipart/form-data, you can upload files by Servlet and attache them to e-mails.
The e-mails will be queued into SQL table through Object Serialization. The users can specify when the Servlets/JSP will send e-mails. The available TimeZones can be listed and the users can select the favorite TimeZone. At the scheduled time, the back-ground Thread will select e-mails and send them to the SMPT server.
Free source code example for file upload Servlets/JSP by multipart/form-data. Example for how to send e-mails from Servlets/JSP by JavaMail API at the scheduled time.
To make JSP/Servlets on Apache Tomcat really Thread Safe, JDBC PreparedStatement must be ready for unlimited concurrent access. The pooling mechanism of JDBC PreparedStatement makes it possible.
Session tracking without Cookie. User authentication mechanism without Realm.
HtmlToXml is the HTML-to-XML conversion tool with the Java Swing GUI.
This conversion tool reads the normal HTML (or any mark-up languages such as XHTML, WML or HDML) and generates the XML.
While in the conversion, you can specify the acceptable data types for the request parameters from the CGI FORM.
These information can be used for the input validation from the CGI FORM.
i18n (Internationalization) for Servlets/JSP on Apache Tomcat. HTTP request with 2 bytes characters, such as Japanese Shift_JIS, Chinese BIG5, Chinese GB2312 or Russian KOI8-R. HTTP response for Locale.
Java API for JCE, RSA and digital signature. A pair of RSA public key and private key can be generated on demand. Any Java objects can be encrypted and decrypted along with the digital signature.
How to for Apache Tomcat. Installation and configuration of Jakarta Tomcat. Patches for Apache Tomcat.
Solutions for JOnAS EJB server and MySQL. You can store 2 bytes characters, such as Japanese Shift_JIS, Chinese BIG5 or Chinese GB2312 into MySQL SQL database through JDBC PreparedStatement.
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.
ALL CONTENTS COPYRIGHT 1997-2007, OOP-Research Corporation. All rights reserved.