Solved

multipart/form-data

Posted on 2011-03-25
5
550 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
basic hardware to learn oop advanced design patterns 3 88
allswap challenge 6 77
@SBGen Method 3 36
what is the difference between "sudo su" and "su - root" 6 104
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
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 will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

911 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

16 Experts available now in Live!

Get 1:1 Help Now