Upload a file in struts? , JAVA Programming

In JSP page give the code as given below:

enctype="multipart/form-data" name="fileForm" scope="session">

    Please select file here that you would like to upload:

    <html:file property="file" />



In the FormBean set the code as given below:


public class FileForm extends ActionForm {

    private FormSelectFile file;


    public void setFile(FormSelectFile file){

        this.file = file;



    public FormSelectFile getFile(){

       return file;




Posted Date: 7/27/2012 5:43:29 AM | Location : United States

Related Discussions:- Upload a file in struts? , Assignment Help, Ask Question on Upload a file in struts? , Get Answer, Expert's Help, Upload a file in struts? Discussions

Write discussion on Upload a file in struts?
Your posts are moderated
Related Questions
RMI Object services: In addition to its remote object architecture, RMI gives some basic object services, which may be needed in a distributed application. 1.  Object namin

Write a program that reads both the girl and boy files into memory using arrays. Then, allow the user to input a name. The program should search through both arrays. If there is

what is methods override?

Describe about the term Access Protection ? Global variables are a typical cause of bugs in most programming languages. A few unknown function can modify the value of a variabl

Determine the meaning of finalize When  a  finalize method  is  defined  in  a  class,  Java  run  time  calls  finalize() whenever  it's  about  to  recycle  an object  of  t

Describe even higer dimensions in java? You don't have to stop along with two dimensional arrays. Java allows arrays of three, four or more dimensions. Therefore chances are pr

How many bits are we used in Unicode, ASCII, UTF-16, and UTF-8 characters?

Public class ConversionProgram {  public void start() {    String userChoice = askConversionCategory();   while (userChoice.equals("1") || userChoice.equals("2") || Page 2

What happens to the static fields of a class during serialization? There are three exceptions in which serialization does not necessarily read and write to the stream. These