File Upload Progress Bar with Jquery and PHP

File Upload Progress Bar with Jquery and PHP

We received many tutorial requests from 9lessons readers that asked how to create file upload progress bar with PHP and Jquery. In this post Arun Kumar Sekar had developed few lines of code using PHP APC library, it is very simple getting the server file upload process every few second and increasin

[ read more ]

Read / Write CSV file in Java

Read / Write CSV file in Java

If you want to work with Comma-separated Files (CSV) in Java, here’s a quick API for you. As Java doesn’t support parsing of CSV files natively, we have to rely on third party library. Opencsv is one of the best library available for this purpose. It’s open source and is shipped with Ap

[ read more ]

LESSON8 – EXTERNALS AND PUBLICS

now in order to call a proc from another file, the files which contains the proc will have to declare the proc as public : . . . public clearscreen clearscreen proc far . . . ret endp and in your file you will have to declare the proc as extrn : . . .

[ read more ]

LESSON7 – PROCEDURES AND MACROS

in assembly as in pascal,c and basic you have the option of using procedures, to declare a procedure you do : Proc name "proc" distance (far/near) . . . ret endp ; end proc and to call the proc you type "Call Procname" the ret must come because you have to return to the ex

[ read more ]

Learning Assembly language

Learning Assembly language

Programming is an art. There are plenty of compilers around to program.The famous C,the beautiful Java,the useful HTML,the elusive oracle and the simple .net… So why assembly language???? Those of you who ever had a go at cracking and all other stuff will have a readymade answer to it

[ read more ]

Struts 2 Tutorial: Struts 2 File Upload and Save Tutorial with Example

Struts 2 Tutorial: Struts 2 File Upload and Save Tutorial with Example

Today we will see how to do File Upload in Struts2. We will use Struts2 built-in FileUploadInterceptor in our example to upload the file. The Struts 2 File Upload Interceptor is based on MultiPartRequestWrapper, which is automatically applied to the request if it contains the file element. Required

[ read more ]

Struts 2 Tutorial: Struts 2 Validation Framework Tutorial with Example

Struts 2 Tutorial: Struts 2 Validation Framework Tutorial with Example

Introduction to Struts2 Validation Framework Struts Action 2 relies on a validation framework provided by XWork to enable the application of input validation rules to your Actions before they are executed. Struts2 Validation Framework allows us to separate the validation logic from actual Java/JSP

[ read more ]

Struts 2 Tutorial

Struts 2 Tutorial

Struts 2 Tiles Plugin Tutorial with Example in Eclipse Welcome to Part-4 of the 7-part series where we will go through different aspects for Struts2 Framework with some useful examples. In previous part we went through Struts2 Validation Framework. We saw how easy it is to integrate validation in y

[ read more ]

Get Data from Clipboard in Java

An example on getting and printing a string from system clipboard in Java in just 2 statements. Example import java.awt.*; import java.awt.datatransfer.*; class SystemClipboard { public static void main(String args[]) throws Exception { // Create a Clipboard object using get

[ read more ]

Paste Image from Clipboard on JFrame in Java

Paste Image from Clipboard on JFrame in Java

An example on pasting an image that is on system clipboard in Java on a JFrame. Here we've used a JLabel and set the image from the clipboard to it as icon. Example // Import for BorderLayout import java.awt.*; // Import for JFrame, JLabel import javax.swing.*; // Import for Clip

[ read more ]