These are touchy, but when they work they really brighten up your page!
In the Download Linked Resources using Jsoup tutorial, we learned how to select a specific hyperlink element based on a unique attribute value in order to download a linked MP3. In today's conclusion, Rob Gravelle covers how to extract the absolute URL from the first link in the Elements Collection and save the MP3 file on our local device.
Just about any Web or mobile app that works with images needs to display thumbnails. To quickly resize or manipulate images using the most optimal methods, you should use a specialized library like imgscalr. Rob Gravelle shows how to use imgscalr to resize, crop, pad, and even rotate images.
In the Web Page Scraping with Jsoup article, Rob Gravelle described how to use the Jsoup Java library to iterate over a web page's links and print out their attributes. In today's follow-up, he explains how to select a specific hyperlink element based on some criteria in order to download a linked MP3.
Today, Rob will demonstrate how to inject a Data Access Object (DAO) as a managed EJB to persist data submitted from a JSP page, in this follow-up to his Create a Java Enterprise Application Controller in Eclipse article.
In the Java Persistence API (JPA), Persistence Units are declared in the persistence.xml file. Rob Gravelle describes how to create a persistence.xml file and a DAO class to handle database transactions in a Java EE application.
In this article, Rob Gravelle takes a look at a great storage option for starting out with Java EE projects, that provider is ObjectDB. Rob details how its a great storage option for starting out with Java EE projects because of it's pure Java Object Database and helps you to build a quick JUnit test and validate its function.
A major enhancement in EJB 3.0 is the addition of the new Java Persistence API (JPA), which simplifies entity persistence and adds new capabilities to EJB 2.1. The Java Persistence API deals with the way relational data is mapped to Java objects called "persistent entities", as well as the way that these objects are stored so as to make them available across multiple application sessions. In this Article, Rob Gravelle demonstrates how to create an Entity class that conforms to the JPA.
Not long after Java first released Java Beans, the Spring Framework was introduced. Now, Oracle, the makers of Java, have fought back with the EJB 3.1 spec. Rob Gravelle demonstrates how to create a Java EE application project and configure a Glassfish server in the Eclipse IDE.
Eclipse Templates are stored blocks of code or text that can be accessed quickly via a key combination. They can save you a lot of time when coding by eliminating the need to type the same lines of code over and over again. Rob Gravelle shows how to use Eclipse's predefined templates as well as how to create your own.
The Arrays class is part of the Java 2 Collections Framework and contains numerous static methods for representing and manipulating arrays, allowing them to be manipulated independently of the details of their representation. Today's article presents the binarySearch() method; it employs the Binary (or half-interval) search algorithm to find the index of an element within a sorted array.
So, You Want A Java Applet, Huh?
If you know nothing about applets, go here first! Get an applet that posts the name of your viewer.
This form item pops up when you click on it. It provides links to other pages and helps your viewers move around your site!
So, You Want Advanced Applets, Huh?
This involves seven different elements and some advanced concepts, but when you get it to work, you'll know you can do anything!