How to upload struts file in DHTML?

How to upload struts file in DHTML?

The interface org.apache.struts.upload.FormFile is used for the struts file upload application. This interface represents a file that has been uploaded by a client. It is the only interface or class in upload package which is typically referenced directly by a Struts application.

This is not specific to Struts in case of DHTML but the two things that are needed in DHTML page is: first, the form needs to specify an enctype of multipart/form-data and second an <input> form control of type file.

Following are the steps to load file in DHTML:

1. Creating a bean
2. Writing the ActionClass
3. Mapping the bean in struts-config.xml
4. Defining actionmapping
5. Developing the DHTML page
Steps used to create a tiles application in DHTML
Steps used to create a tiles application in DHTML - Create a template that designs a layout for your application.......
How do we create a DHTML drop-down menu?
How do we create a DHTML drop-down menu? - In order to create a DHTML drop down menu we need JavaScript API. The API (Application Programming Interface) consists of core set of cross-browser JavaScript functions to make DHTML programming easy and quick........
What is XHTML? Why is XHTML needed? Advantages of using XHTML rather than HTML
What is XHTML? Why is XHTML needed? - XHTML stands for Extensible Hypertext Markup Language and is a cross between HTML and XML. It helps us to create better formatted code for site. It makes site more accessible........
Post your comment