All java.net Articles
1 to 30 of 235
Next
Log4Ajax
AJAX developers, like all client-side JavaScripters, know that alert is their friend at development time, but as a logging tool, it's severely limited. Eric Spiegelberg offers more robust ideas for logging on the client side and logging from the client to the server.
by Eric Spiegelberg
Java Tech: Image Embossing
Many GUIs use an "embossing" effect to create the illusion of depth, manipulating pixel colors to suggest small ridges and valleys. In this installment of "Java Tech," Jeff Friesen introduces an algorithm to perform the embossing effect, and shows how easy it is to implement with Swing and Java2D.
by Jeff Friesen
The Artisan and the Artilect, Part 3
Max Goff concludes his series on the future of artificial intelligence and compares the roles of the human craftsman and the human-created superior intellect.
by Max Goff
Holiday Pictures 2005
We're taking it easy the last week of 2005. Many people take this week as vacation and travel or spend a little extra time with family. Duke is no exception. We're looking for your pictures of Duke on vacation.
by Chris Adamson, Daniel H. Steinberg
Solving Sudokus in Java
Sudoku puzzles are wildly popular, and offer an ideal introduction to constraint programming (CP). Rather than using brute force to find every possible solution, CP allows you to specify what must be true in a problem space, and then efficiently finds an answer. Yan Georget shows how this works.
by Yan Georget
(Not So) Stupid Questions 6: Comparability of Minimum, Maximum Dimensions
This "stupid question" is about the definition of AWT/Swing Components' getXXXSize() methods, given that the Dimensions they return are not Comparable.
Fitnesse Testing for Fast-Paced Agile Web Development
If you're developing a web app, maybe it's time to make your test suite web-aware too. Fitnesse gives you a web interface to test development and execution, allowing you to test assertions against HTML, XML, and your Java code's behavior. Robert J. Miller gives an introduction.
by Robert J. Miller
App-Managed JDBC DataSources with commons-dbcp
Need a connection pool but maybe not one provided by a container? This need still comes up in special cases--tightly managed environments, CD-ROM distribution, etc.--and there's no need to reinvent the wheel yourself. Ethan McCalllum shows how the Apache Commons package commons-dbcp can help.
by Ethan McCallum
Using JMX and J2SE 5.0 to Securely Manage Web Applications
Want to know what's going on with your web application, in a more sophisticated way than just "tail"-ing a log file? By instrumenting your web app to work with JMX, you can use a number of tools to interact with the running application. Zarar Siddiqi shows how this can be accomplished.
by Zarar Siddiqi
Java Tech: Generics and You
Are you ready to put your generics knowledge to the test? Java Tech columnist Jeff Friesen has compiled a quiz with 20 questions designed to dig deep into the concepts, features, and gotchas of this major J2SE 5.0 feature.
by Jeff Friesen
Implementing Validation Rules using Aspects
Data validation is something that may be needed throughout your application, which makes it a candidate for an aspect-oriented programming approach. Srini Penchikala shows how to combine AspectJ and Drools to create a rule-driven data validation system.
by Srini Penchikala
Further Down the Trail
Trails gets you up and running quickly, but what does it take to create a real application, with sophisticated relationships and customized pages and editors? Trails creator Chris Nelson shows you how easy this is.
by Chris Nelson
Implement Your Own Proxy-Based AOP Framework
Aspect-oriented programming often comes with a totally new way of doing things, maybe not entirely to your liking. But why not take control? By using Java dynamic proxies, or the CGLIB library, you can create your own AOP framework, and really understand how it operates. Jason Zhicheng Li shows you how it's done.
by Jason Zhicheng Li
Sprinkle Some AJAX Magic in Your Struts Web Application
AJAX offers a richer client-side experience than is offered by the typical reload-the-page cycle of web applications, but do you have to start over to get its benefits? As Paul Browne shows, you can incrementally add AJAX functionality to an existing Struts web app.
by Paul Browne
Component Inheritance in EJB 2.0
Many think that that EJB 2.0 doesn't support inheritance for entity beans, and this has been a driver of support for POJO-based frameworks. However, David Musicant says that component inheritance is possible, explains what that means, and shows how to do it.
by David Musicant
Accessing a PDF Document with the Acrobat Viewer JavaBean
Do you need to open a PDF document in a Java GUI application or applet? Adobe's Acrobat Viewer JavaBean provides PDF viewing in the form of an easily embedded component. Deepak Vohra introduces its use and features.
by Deepak Vohra
Service Provisioning Through ESB
The Enterprise Service Bus approach to enterprise development separates functionality from transport, allowing you to develop deeply distributed systems without getting hung up on the messaging details. In this article, Binildas C. A. shows how to develop a basic ESB application and the advantages it conveys.
by Binildas Christudas
(Not So) Stupid Questions 5: Inheritance Versus Interfaces
This "stupid question" is about when to use inheritance and when to offer an interface.
Unit Testing Hibernate Mapping Configurations
Hibernate's use of mapping files to define object-relational mappings means that these files are as much a part of your program as the Java code... and sometimes they don't work. Johannes Brodwall shows how you can apply unit testing techniques to test and verify your Hibernate mappings.
by Johannes Brodwall
The New RMI
If you remember RMI from its earliest incarnations, then you understand its usefulness for distributed computing, but maybe not its latest innovations. In this article, Krishnan Viswanath looks at J2SE 5.0's new RMI features, including SSL-based secure RMI, launch-on-demand integration with xinetd, and stubless operation.
by Krishnan Viswanath
The Artisan and the Artilect, Part 2
Max Goff continues his series on the future of artificial intelligence and compares the roles of the human craftsman and the human-created superior intellect.
by Max Goff
Developing Content-Driven Web Apps with karma-jcr
The karma framework, hosted on java.net, uses a "convention over configuration" approach to get your web app up and running quickly. Paired with its persistence framework, karma-jcr, it offers a feet-first way to develop web apps with CRUD (create, retrieve, update, delete) functionality. Project founder Oliver Kiessler shows how to get started.
by Oliver Kiessler
J2ME Tutorial, Part 4: Multimedia and MIDP 2.0
In part four of this J2ME tutorial, you will use the Mobile Media API 1.1 (MMAPI) to load and play audio and video on your MIDP device.
by Vikram Goyal
Dynamic Interaction with Your Web Application
Your web application is misbehaving, but since it's running, how do you figure out what's going on? Remote debugging (if you can get it configured) is one option, but is slow and difficult. Do you wish you could just throw some code in at runtime and figure out what's going on? Lorenzo Puccetti shows how: by embedding a scripting language interpreter like Rhino, you can do just that.
by Lorenzo Puccetti
Handling Java Web Application Input, Part 2
Cross-site scripting describes a variety of attacks against web applications, tricking them into executing code that compromises security. In this article, Stephen Enright shows how a combination of filtering and proper encoding can prevent such attacks.
by Stephen Enright
Receive Application Errors via Yahoo Messenger
Logging errors is fine, but do you want to sift through errors logs after the customer has experienced a problem and called to complain? The extensibility of log4j gives you options for handling problems. In this article, Romin Irani shows you how to use log4j to send an instant message when your program logs an error.
by Romin Irani
Container-free Testing with Mockrunner
Testing container-dependent code is made much more difficult when the container isn't available on the developer's machine, and this is a case where a mock objects approach can help. Bob McCune introduces Mockrunner, a JUnit-related framework for testing code with mock objects.
by Bob McCune
Handling Java Web Application Input, Part 1
Want to secure your web application? Don't leave the front door wide open. Exploits based on a failure to validate input allow attackers untold vulnerabilities to exploit, perhaps letting them execute arbitrary SQL statements. In this first of a two-part series, Stephen Enright shows you how validating incoming submissions can put a stop to such attacks.
by Stephen Enright
Java Sketchbook: Digging into Java Web Start
Java Web Start offers new solutions to old problems of distributing J2SE applications to end users. In the second installment of his look at JWS, Java Sketchbook columnist Joshua Marinacci looks at the JWS sandbox, options for getting out of it, speeding up downloads with Pack 200 compression, and more.
by Joshua Marinacci
Java Tech: The Sweet Song of the BlueJ, Part 2
BlueJ, an IDE for beginning Java programmers, has more under the hood than you might expect. In the second part of his survey of BlueJ, Java Tech columnist Jeff Friesen looks at BlueJ's support for debugging, unit testing, building executable JARs, its configurability, and more.
by Jeff Friesen
1 to 30 of 235
Next
|