|
Java EE 6 example source code file (getParts.jsp)
The Java EE 6 getParts.jsp source code
<%@ page import="javax.servlet.http.Part" %>
<html>
<head>
<title>File Upload Example
</head>
<body>
<h1>Files Received at the Server
<br/>
<%
for (Part p: request.getParts()) {
/* out.write("Part: " + p.toString() + "<br/>\n"); */
out.write("Part name: " + p.getName() + "<br/>\n");
out.write("Size: " + p.getSize() + "<br/>\n");
out.write("Content Type: " + p.getContentType() + "<br/>\n");
out.write("Header Names:");
for (String name: p.getHeaderNames()) {
out.write(" " + name);
}
out.write("<br/>
Other Java EE 6 examples (source code examples)Here is a short list of links related to this Java EE 6 getParts.jsp source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.