Past Java 10-Minute Solutions
You need to integrate PHP content and JSP content in a single Web application. Should you convert the PHP to JSP, or vice versa? A better question is why choose. You can deploy both in the same Web application context.
|
Every Web developer has to tangle with tables. A new open source library, DisplayTag, can make life with tables much more organized. Find out how to combine the DisplayTag library with JavaScript to make a slick app that displays line item details.
|
Native Windows installers offer unparalleled integration with the operating system, as well as familiar installation for users. Learn how to build a native Windows installer for an SWT application using open source tools.
|
Used with JavaScript and JSP code, iFrames elegantly resolve the "hang" issue that occurs when a Web application fetches values from the server.
|
When hackers break into your network, make sure they can't find out your secrets. It's a little more work to encrypt sensitive data, but the Java Cryptography Extension (JCE) makes it straightforward.
|
In production environments, JVMs are often killed and restarted either automatically or manually. JVM shutdown hooks provide a clean and simple mechanism for registering application-specific behavior that performs the required cleanup work when a JVM terminates.
|
Learn how a simple design pattern can make sophisticated JTable effects easy. Add color, style, and pizzazz, and make your rows and columns automatically highlight, change color, and flash in response to real-time data updates.
|
Use this simple, step-by-step solution to download and configure both WebLogic platform 8.1 and MySQL, and develop a Web service that ties the two together.
|
Writing a servlet that can perform character streaming is easy, but streaming binary content is trickier. This simple six-step tutorial guides you through a streaming solution that enables you to stream both character and binary data.
|
This 10-Minute Solution provides a brief introduction to the Java Authentication and Authorization Service (JAAS) architecture, API, and programming model. It covers both authentication and authorization with JAAS, providing full working code examples that demonstrate JAAS security in action.
|
The EJB 2.0 specification defines a new type of enterprise bean, the Message-Driven Bean, which provides a reusable J2EE messaging component that can leverage existing EJB investments in J2EE application servers. Java Pro Kyle Gabhart examines this new bean and compares it with the existing EJB messaging components.
|
How can session and entity EJBs participate in a messaging exchange? By utilizing resource manager connection factories, EJBs access extra-container resources, such as JMS and JavaMail sessions, for enterprise messaging.
|
This 10-Minute Solution introduces XSLT and explores the Java API for XML Processing (JAXP) transformation API. It concludes with a practical, step-by-step example for using XSLT within a J2EE Web application via JAXP's abstraction layer.
|
The JBoss Application Server is a full-featured, J2EE app server with robust EJB support. In this 10-Minute Solution, Java Pro Kyle Gabhart offers a step-by-step guide through the installation and configuration of the JBoss app server and shows you how to deploy a simple session bean.
|
Learn to use the J2ME networking classes found in the javax.microedition.io package to send HTTP requests to a Web server or similar HTTP-enabled network server.
|
Learn to use the EJB 2.0 local references to reduce the unnecessary cost imposed when referencing one enterprise bean from another enterprise bean located in the same container.
|
Learn how to create JMenu components to enhance your Swing applications so that they utilize menus, access the file system, and allow users to cancel actions.
|
Learn how to manipulate JFrame objects to create an XML text editor that has a text view and a graphical view and that updates the graphical view based upon changes you make to the text.
|
Create a custom class that extends JTree to create a visual representation of an XML document.
|
Every application can benefit from a well-designed debugging strategy, but few applications have one. Additionally, most debugging strategies contain wasteful overhead that degrades application performance.
|
Although fancy Swing-driven GUIs or browser-based clients are great for the end users of your company's software development packages, they aren't really necessary for in-house tools or utilities that you write to aid your development process.
|
There are many C++ features that Java chose to omit. One is the ability to define enumerated types, such as those declared with the C++ enum keyword.
|
By default, an RMI program does not have a security manager installed, and no restrictions are placed on remotely loaded objects. The java.rmi package provides a default security manager implementation that you can install or you can write your own.
|
The Java 2 Collections Framework includes a set of static methods for sorting and searching lists and arrays. Java Pro Danny Savarese provides sample code that demonstrates the basics.
|
The Java core packages include jave.util.zip, which is useful for creating and reading compressed files or archives in the ZIP and GZIP formats. This saves you the time of creating custom file archive formats for your applications.
|
Java 2 Micro Edition and its K Virtual Machine (KVM) allow you to write Java applications for handheld devices, including ones that run Palm Computing's Palm OS. Learn to write a Hello World Spotlet for the Palm using KVM.
|
JavaServer Pages can make Web Application development a lot simpler. If you identify the most common kinds of data entered into forms, you can quickly start to build a library of classes that you can reuse to store form data.
|
The GNU Compiler for Java allows you to compile Java source to bytecode or machine code, and Java bytecode to machine code.
|
Even though the Java Virtual Machine performs automatic garbage collection, you can't completely forget about memory management issues. How and when garbage collection is performed is implementation dependent.
|
One way to implement an inactivity timeout in an application is to keep track of the last time a MouseEvent or KeyEvent was sent to an application. Find out how to do it.
|
Property lists are a convenient means of storing user preferences and application configuration information in a file. The java.util.Properties class makes managing property lists easy.
|
When you time a set of threads, you generally want to know the time elapsed between when the first thread starts and the last thread finishes. Read two methods for setting thread timing.
|
To write UDP clients and servers, you have to use the DatagramSocket class.
|
You can load icons and other graphics using a resource bundle, but you must implement your own resource bundle to do this. A good way to manage localized resources is to create a resource bundle for each specific type of resource. This solution shows you how.
|
JavaScript provides greater control over the Web browser and the ability to dynamically create runnable code. Learn two different methods for calling JavaScript from a Java applet.
|
Learn how the Swing JTable class is organized so that you can customize it to your specific needs. In this solution, you'll leaern how to customize it to display a JButton.
|
To write UDP clients and servers, you have to use the DatagramSocket class.
|