Solved

multipart/form-data

Posted on 2011-03-25
5
553 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Title # Comments Views Activity
simple java question 3 59
web services creation SOAP vs REST 5 56
Oracle SQL syntax check  without executing 6 75
even odd program using while loop 3 60
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

860 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