Current area: HOME -> Java -> WEB-Development Articles
WEB-Development
Applying MVC to Web-Based Applications with Generic Views
In this article, I'll show how to use MVC in a Web-based
project. My controller will rely on Reflection API to
dynamically call action methods, redirect to proper views, and
coordinate data flow between presentation and model layers.
Asynchronous JavaScript Technology and XML (AJAX) With Java 2 Platform, Enterprise Edition
Anyone who has used Flickr, GMail, Google Suggest, or Google Maps will realize that a new breed of dynamic web applications is emerging. These applications look and act very similar to traditional desktop applications without relying on plug-ins or browser-specific features.
Consolidating Email using Java
Learn how to write a Java program that will download Email messages from one POP3 server and forward those messages to another Email account when the original server refuses to forward messages. Such a program is particularly useful for consolidating all of your Email messages onto a single Email server.
Create and Deploy Blog and Wiki Modules with Apache Geronimo
Blogs and wikis are taking the Internet by storm. One reason these technologies thrive is simplicity for both end users and administrators. Administrators find that Apache Geronimo is a robust and secure platform for creating new blog and wiki applications. Find out how you, too, can create blog and wiki applications using Geronimo and other open source components.
Increase stability and responsiveness by short-circuiting code
Keep your Web applications running when tasks lock up. High
volume Web sites often require asynchronous or threaded
operations to achieve target performance criteria. While
threads in Web containers are considered bad practice, the
alternative is for developers to make blocking calls to code
they cannot control. It becomes important that dependencies of
this nature fail-fast. This article covers a homegrown
short-circuit pattern that ensures threaded execution and
completion of a process in a fixed window of time.
Integrating JBuilder4 Foundation with Apache Tomcat
A step-by-step procedure for integrating Tomcat 3.2.1 with JBuilder 4 Foundation, which allows servlets to be modified and debugged directly from the IDE.
Introduction to Jakarta Struts Framework
This article shows us how to use Apache's Jakarta Struts framework, which encourages an application architecture based on the Model-View-Controller (MVC) design pattern, useful in building servlet- and JSP-based Web applications.
Keeping Those Links Up-to-Date
Frequent users of the Internet face a common problem: there are so many interesting links which they not only would like to come back to at some point, but which are also interesting to others -- for example, colleagues who share a corporate intranet, and who are interested in similar areas. Browser bookmarks are suitable for storing only small numbers of such links, since they are only visible on one particular machine (unless the browser configuration data is shared via some mechanism like NFS), and are not shareable with other users of the network. So sooner or later, many of us create simple HTML pages with our favorite links, typically organized by main area and subtopic, and often including a personal note in the design to make them even more interesting to other users.
Load List Values for Improved Efficiency
Reduce the number of database hits and improve your Web application's efficiency when you load common shared list values only once. In this code-filled article, learn to load the values for drop-down lists when your Web application starts and then to share these loaded list values among all the users of your application.
Mix protocols transparently in Struts
In this follow-up article, Steve Ditlinger shows how to extend Struts to incorporate that solution. Specifically, he demonstrates how to add custom properties to actions by extending the ActionMapping class. He also shows how to specify such property additions in the struts-config.xml file's action tag element without changing the document type definition (DTD) file. Next, he explains how to add both the behavior you desire and the necessary supporting properties to an ActionServlet class extension. Finally, he extends two Struts custom tags to take advantage of the ActionMapping and ActionServlet class extensions and minimizes the redirections to improve the mixed protocol solution
Mix protocols transparently in Web applications
To maintain the security of sensitive data as it travels over the Internet to or from the browser, Web applications often rely on Secure Sockets Layer (SSL). The secure Webpages and processes that transmit sensitive data utilize HTTP over SSL (HTTPS) rather than the usual HTTP. Integrating SSL into a Web application should prove seamless and simple to implement as well as maintain. In this article, Steve Ditlinger explores typical SSL implementations. He develops an SSL solution using the J2EE (Java 2 Platform, Enterprise Edition) servlet redirect mechanism to protect sensitive data transmission. He also develops an overall solution combining JavaServer Pages (JSP) custom tags and an application-specific servlet base class. In addition, he demonstrates this solution's implementation within an application using the Struts framework and proposes an enhancement to Struts for better integration.
Personalize your Website with skins
You can give your users control over your Website's look and feel by exploiting user profiles and factoring out key visual design elements into skins. This article demonstrates a basic skin server and shows how you can use that server to begin personalizing your JSP-based Website.
Programming a HTML Spider in Java
Spiders are programs that can visit Web sites and follow
hyperlinks. By using a spider, you can quickly map out all of
the pages contained on a Web site. This article will show you
how to use the Java programming language to construct a spider.
A reusable spider class that encapsulates a basic spider will
be presented. Then, an example will be shown of how to create a
specific spider that will scan a Web site and find broken
links.
Savor success with Java on the front end
In this article, Alex Kalinovsky shares his experiences with these three technologies, and provides criteria and tips for choosing among them in your Java development. Finally, you'll learn an innovative approach that bridges Java Swing and HTML with minimal effort.
Tapestry makes web development a breeze
Simplify your Web-based development with Tapestry, an open-source, Java-based framework that makes developing a breeze. This article shows you around Tapestry, from installation to file structure. See for yourself how Tapestry facilitates servlet-based Web application development using HTML and template tags.
Unclogging Server Bottlenecks w/ Active Containers
In server-side control architectures a majority of the control events must be handled on the server side to update the state of the control. For every user event, the entire page data is sent back to the server as part of the form submission, even data that has not changed or is not affected by the user event. This article shows you how to use containers to overcome data-processing redundancy, which can otherwise drain the life out of your handheld or Web server.
Weaving the Tapestry Framework: Part 1
Walk thought the basic concepts of the Tapestry framework, config files, and setup then create a sample project in an enterprise-scale IDE such as JBuilder.
Web FORM-Based Authentication
This article walks you through the various security settings that can be set up in the Web Application framework, going into detail on how you can set up FORM-based authentication.
Write your own threaded discussion forum
From a programming standpoint, this article demonstrates putting together a simple event-driven context-sensitive interface, as well as how to design a simple client/server communications protocol. The solution to a pesky Netscape layout bug is demonstrated, as well as download optimizations.