04. Download (Files, Streams...). Show PDFs. Anchor problem, Iframes
1. Introduction It is important to download resources from the web (PDFs, CSVs, images..) Let's follow these steps: 2. Prerequisites: Add dependencies 1. Add the reference to Apache commons-io in the build.gradle file /* * This file was generated by the Gradle 'init' task. * * This generated file contains a sample Java library project to get you started. * For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle * User Manual available at https://docs.gradle.org/6.8/userguide/building_java_projects.html */ plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' id 'war' } repositories { // Use JCenter for resolving dependencies. jcenter() } dependencies { // Use JUnit test framework. testImplementation 'junit:junit:4.13' // JSP & SERVLETS compileOnly 'jakarta.servlet:jakarta.servlet-api:5.0...