To use the DEXTUploadX5 samples, you will need the product's activation key. After downloading the trial version, you will be emailed an activation key for 30 days of testing. See the Licensing section of the manual for details on how to apply the licence.
- Sample configuration
-
- Common: sample_x5_en
- Java Servlet environment: sample_x5_nj_servlet_en
- Java Spring environment: sample_x5_nj_spring_en
- ASP.NET environment: sample_x5_net5_en
- ASP.NET MVC environment: sample_x5_net5_mvc5_en
- Common samples
-
The sample_x5_en_{version}.zip file is the default sample. It describes the overall operation and UI features of DEXTUploadX5.
To view the sample, you need to set up the sample as a web application or virtual directory on your web server.
All samples are stored in UTF-8 format and DEXTUploadX5 exists in the dx5 directory.
- Java Servlet samples
-
The sample_x5_nj_servlet_en_{version}.zip file is written based on JSP/Java Servlet environment and describes the overall functionality of DEXTUploadX5 for uploading and downloading files.
The server-side configuration of the sample is based on JDK 1.8 or later and the Java Servlet API 3.1 specification, and the development environment is Eclipse. Eclipse must be installed by default to view the samples, and the JDK and Apache Tomcat must be installed to run the samples.
All samples are stored in UTF-8 format. Eclipse uses ANSI by default, so non English sentences may look broken. You can avoid this by setting the default text encoding to UTF-8 in the Preferences > General > Workspace screen before importing the samples into the Eclipse Workspace.
DEXTUploadX5 is located in the src/main/webapp/dx5 directory. In addition, our own DEXTUploadNJ is used as a component to handle file uploads and downloads on the server side. DEXTUploadNJ is included in the sample (lib), and for detailed usage and licensing information, please refer to the manual and samples of the DEXTUploadNJ product.
If you do not have a development environment configured, proceed as follows.
- Download and install the latest JDK version.
- Download and install Apache Tomcat.
- Download the Eclipse IDE for Java EE Developers.
- Run Eclipse and set the JDK (Preference > Java > Installed JREs)
- On the Preference > Server > Runtime Environments screen, add Tomcat.
- On the Preference > General > Workspace screen, set the default text encoding to UTF-8.
If your development environment is configured, you can load the sample projects in the following order. (You will need to resolve any errors due to differences in your environment configuration).
- Add the sample project using Import > General > Existing Projects into Workspace > Select archive file.
- To run the sample, in the Eclipse Servers window, right-click > New > Server to launch the New Server window.
- Select Tomcat, enter a server name, and click Next.
- Select sample_x5_nj_servlet_en from the list on the left, add it to the right, and when finished, it will be registered in the Servers window.
- Select the registered target, right-click it, and click Start to run the sample.
- For default settings, open a browser and enter the address http://localhost:8080/sample_x5_nj_servlet_en to view the sample.
- Java Spring Sample
-
The sample_x5_nj_spring_en_{version}.zip file is a sample that uses the Spring Framework. It is written based on the Spring Framework environment and describes the functions for uploading and downloading files.
- Add the sample project using Import > General > Existing Projects into Workspace > Select archive file.
- To run the sample, in the Eclipse Servers window, right-click > New > Server to launch the New Server window.
- Select Tomcat, enter a server name, and click Next.
- Select sample_x5_nj_servlet_en from the list on the left, add it to the right, and when finished, it will be registered in the Servers window.
- Select the registered target, right-click it, and click Start to run the sample.
- For default settings, open a browser and enter the address http://localhost:8080/sample_x5_nj_spring_en to view the sample.
- ASP.NET Sample
-
The sample_x5_net5_en_{version}.zip file is a sample built with the ASP.NET environment. The sample uses .NET Frameowrk version 4.6.1 and was created using Visual Studio 2019 (ASP.NET using the .NET Framework, not ASP.NET Core).
Our DEXTUpload.NET Pro is used as a component to handle file uploads and downloads on the server side. You will need to apply a licence to use the product, so please refer to the documentation for the DEXTUpload.NET Pro product.
The steps for testing the sample are as follows
- Double-click sample_x5_net5_en.csproj to load it into Visual Studio.
- Save the project immediately to create the sample_x5_net5_en.sln file.
- In Solution Explorer, right-click the project name and select Debug > Start New Instance.
- Your default browser should open with the address http://localhost:3060/sample_x5_net5_en to view the sample.
- ASP.NET MVC sample
-
The sample_x5_net5_mvc5_en_{version}.zip file is a sample built with the ASP.NET MVC environment. The sample uses .NET Frameowrk version 4.6.1 and was created using Visual Studio 2019 (ASP.NET using the .NET Framework, not ASP.NET Core).
Our DEXTUpload.NET Pro is used as a component to handle file uploads and downloads on the server side. You will need to apply a licence to use the product, so please refer to the documentation for the DEXTUpload.NET Pro product.
The steps for testing the sample are as follows
- Double-click sample_x5_net5_mvc5_en.csproj to load it into Visual Studio.
- Save the project immediately to create the sample_x5_net5_mvc5_en.sln file.
- In Solution Explorer, right-click the project name and select Debug > Start New Instance.
- Your default browser should open with the address http://localhost:4223/sample_x5_net5_mvc5_en to view the sample.