A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
ContentType value coming as null
Joined: Oct 09, 2012
Oct 09, 2012 03:01:13
contentType value is coming as null in fileprocess.jsp.
<%@ page language="java" contentType="multipart/form-data; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<form name="fform" action="fileprocess.jsp">
Upload File:<input type="file"/>
<input type="submit" value="submit"/>
contentType = request.getContentType();
Joined: Feb 05, 2003
Oct 10, 2012 08:34:48
page directive sets the contentType of the response. You're inspecting the contentType of the request.
A good workman is known by his tools.
subject: ContentType value coming as null
values are not getting transferred from one servlet to another servlet
Browse- need full file path
Not able to set attribute in JSP
Browser support for uploading file
include directive doesn't work
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015