Posts Under 'Jsp'

First download Apache Jakarta Commons FileUpload library from this link and add into classpath of your Application. Validate HTTP Request Now that you have installed the FileUpload library, you can start writing the code. First, we have to make sure the HTTP request is encoded in multipart format. This can be done using the static […]

Tomcat can be installed in two different ways and below is the information about how to increase or set the heap size for tomcat server in both scenarios – 1. Folder installation – Create one new environment variable JAVA_OPTS – Set following value -Xms256m -Xmx512m – instead of 256m and 512m , you can enter […]

Character Conversions from Browser to Database in JAVA Characters in route to their final storage destination on the World Wide Web, move through various layers of programming interfaces and can cross software and hardware boundaries. This article provides helpful hints and best practices for accurately transporting character data from browser to database and back again. […]

org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException: the request doesn’t contain a multipart/form-data or multipart/mixed stream, content type header is null If you are iterating the items from the multipart request without checking if an http request is encoded in multipart format then you will get this error. If ServletFileUpload.isMultipartContent(request) returns true then you need to get the fields via the […]