multipart/form-data

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
LVL 1
cano63Asked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
you can use commons fileupload
http://commons.apache.org/fileupload/using.html
0
 
CEHJCommented:
You'll find it easier with a servlet. See

http://www.jguru.com/faq/view.jsp?EID=1045507
0
 
cano63Author Commented:
The thin is that in a portlet you don't use a servlet  , I have a processAction(ActionRequest request, ActionResponse response)

0
 
Sathish David Kumar NArchitectCommented:
0
 
CEHJCommented:
Sorry - didn't notice it was portlet
0
All Courses

From novice to tech pro — start learning today.