Solved

multipart/form-data

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

685 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