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
We need an OpenGL - based visualisation of an OBJ-File that was created out of Maya3D. (important: we have to use OpenGL with Java - JOGL) In other words: we have an OBJ-file (a

According to XMPP Standards Foundation "XMPP is the Extensible Messaging and Presence Protocol, a set of open technologies for instant messaging, presence, multi-party chat, voice

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

What is the name of the services you have chosen? What do they do? What is the name of the publisher? Provide details if you are developing your own service(s). There are variou

Develop a Supply Chain Management Project Description: Supply Chain Management from HK and China Skills required is Java

What are Logic- or Time-Bombs ? It execute the payload while predetermined event occurs. For instance use kind's particular phrase and particular data is reached.

Need iOS native App Developer Project Description: I want someone to help me prepare a simple inventory system. I am not a programmer trying to learn as i go. Skills re

Need Java Assignment for course Project Description: I want to get an assignment done. Involves building on a minesweeper game written in Java. You subsequent code is to be u

How DoS attack is a cyber crime? For what cyber crime can be used? DoS stands for Decline of Service and it is a cyber crime as it jams and within a few cases shut down the goa

What are the Design Goals of Java Massive growth of the Internet and World-Wide Web leads us to a completely new way of looking at development of software which can run on diff