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
Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum


What are object/relational mapping integration module? Ans) Spring also supports for using of an object/relational mapping (ORM) tool over straight JDBC by giving the ORM module

Determine the Java Compiler Structure Source code for every class is in a .java file. Compile every class to produce -.class? file. Sometimes, multiple .class files are pack

Need JVC Everio stream converter Project Description: JVC Everio is a brand of cameras capable of real time streaming/ encodinig. To get the video from a PC or a mobile de

Consider the following code? What input is needed for x in order for the sum variable that is output at the end of the code to be 12 ? (In other words: what do I need to make X be

Develop a Purchase Order System Project Description: Purchase Order (PO) is one of the first steps in the ordering process of a store. Before, we rely on manual computation t

What is the difference among microprocessors and microcontrollers? Give one example of both? The microprocessor is electronic equipment that can perform various functions and a

What is Overloading explain with an example? Overloading is while the similar method or operator can be used on several different kinds of data. For example the + sign is used

In preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. In time slicing, a task i