Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
to build GUI front-ends. In this article returning JavaWorld contributor Dr. Mark O. Pendergast goes against the grain, suggesting three cases where Java applets are a viable alternative
to HTML forms. First learn how to use applets to create complex multi-level menus, then consider what you could gain from
POST operations with client- and server-side applet implementations. Note that security concerns are addressed for each of the
solutions discussed in this article.
The recent zero-day security flaw (discovered in Java 7 update 10 and subsequently patched by Oracle) allowed applets to bypass the Java security sandbox, granting themselves permission to execute arbitrary code. A frenzy of fear about Java security followed.
The truth is that Java is no different from Active X, Flash, and other plugins, in that it poses an occasional security threat. It was always possible for hackers to create self-signed applets, and it is also possible to secure your Java applications against them; not perfectly, but sufficiently. Rather than swearing off applets, I would hope that developers would take the time to educate themselves and strengthen the security of their Java applications. This article offers tips for writing secure applets in real-world development scenarios.
Every Java programmer has created a Java applet, most of them in the category of simple clocks or calculators. Some of us have even played with fonts and colors and seen that it's possible to integrate our applets with web pages. But for some reason, developers tend to shy away from applets when it comes to creating serious applications that interact with a database. Most of the time, we choose HTML forms for user interactions involving stored data. It could be that we're leery of the security limitations placed on applets. Some of us got caught up in the Ajax frenzy; for others, it was just the technique that was taught in school. Whatever the reason the potential of using Java applets to build the GUI interface for web applications tends to be overlooked. With this article I aim to correct that oversight, by demonstrating three useful applications of applets for web development:
Along the way, you'll learn how to do all of the following with applets:
HTTPURLConnection) with a servlet in order to transmit entire objects
You can download the source code for this article anytime. The source package consists of three NetBeans projects:
getmethod. The GUI for this applet is a
JTabbedPanethat holds forms for each function and utilizes
URLEncodingprojects, but they use the
postmethod. All of the applets for these projects are unsigned and do not require any special security options, for reasons that I'll explain.
Before I get into the mechanics of these examples let's review some basics of deploying Java applets.