Solved

multipart/form-data

Posted on 2011-03-25
5
547 Views
Last Modified: 2012-05-11
Hello  I,m submitting a jsp with multipart/form-data enctype, I,m trying to upload a file.

But one i post the jsp and get to my servlet, how I,m able to get value,

Ikno that in a regular submit i can get the value of my parameter as something like

String opcion = request.getParameter("TXTOPTION");

but how i do thid in a multipart/form-data jsp,

Also i,m working in a Portlet  so I don't have the regular Servlet i have a Process action method, like a servlet but it heredate from generic portlet class.

In a regular servlet i know the process, is in a process action method of a protlet
0
Comment
Question by:cano63
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 35217856
You'll find it easier with a servlet. See

http://www.jguru.com/faq/view.jsp?EID=1045507
0
 
LVL 1

Author Comment

by:cano63
ID: 35217875
The thin is that in a portlet you don't use a servlet  , I have a processAction(ActionRequest request, ActionResponse response)

0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35217920
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 35218067
Sorry - didn't notice it was portlet
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 35218974
you can use commons fileupload
http://commons.apache.org/fileupload/using.html
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now