Current area: HOME -> Java -> General articles Articles
General articles
A Web Developers Perspective - "from ASP to JSP"
Comparing these two technologies is both a difficult and sensitive task but it is important to appreciate the differences in the way that the various interfaces, and the applications that connect to them, work.
Building dynamic Web sites with mathematical content
Mathematical formulae, with their subscripts, superscripts, and
special symbols, are devilishly difficult to translate into
HTML. Most scientists and mathematicians use the flexible LaTeX
text processor to create aesthetically pleasing formulae -- but
how can you convert this output to a Web-friendly form? In this
article, Michael Yuan shows how JSP pages and custom tags can
get LaTeX-formatted formulae onto the Web in a fashion that is
easy for the author and doesn't require any special client-side
software. As he iterates through increasingly efficient
methods, you'll see how server-side Java technology can harness
the power of disparate third-party tools to solve seemingly
intractable problems.
Building Your Own JSP Components
This article is written for developers who want to create their own Beans for use as JSP components, and for interested web designers who want to understand how these components are implemented behind the scenes.
Code Conventions for the JavaServer Pages Version 1.x Language
In this article, we propose a set of standard conventions for writing JSP pages (versions 1.1 and 1.2) that should be followed on a typical software project using web components. The article draws on the Code Conventions for the Java Programming Language as a template to identify various important elements that should be addressed in a coding conventions specification (relevant to JSP technology). In particular, it addresses file names and organization, indentation, comments, directives, declarations, scriptlets, expressions, white space, naming conventions, and programming practices.
Convert scriptlets to custom tags for better JSP code
Scriptlets are good for fast-and-dirty coding, but in the long
run you need a less cluttered solution for your JSP pages. In
this installment of JSP best practices, the author shows you
how to convert a scriptlet into a JSP custom tag, add it to a
custom tag library, and begin using it in your JSP development.
Counting Active Users using JSP
Ever wondered how many users are viewing your web site at this moment? well this article seems to answer that. We will learn how to count active users using one session listener class and a JSP page. Once you have read this article, you'll be able to see the number of active sessions on your web site. This is all fun, so keep reading.
Develop a generic caching service to improve performance
In this article, you will learn how to create a 100 percent pure Java cache that uses an anonymous background thread to purge expired items. You will see how to architect such a cache while understanding the trade-offs involved with various designs.
Developing Multilingual Web Applications Using JavaServer Pages Technology
JavaServer Pages (JSP) technology is now a favorite tool for developers of web applications. With JSP pages, developers can design dynamic web pages without the need for other programming knowledge. At the same time, web developers can use an extensible tag mechanism to harness the power of underlying software components. Now, a new extension developed through the Java Community Process provides enhanced support for the development of multilingual applications. The JavaServer Pages Standard Tag Library defines, among other functionality, a set of tags that enable localization and locale-sensitive formatting.
Developing Web Applications with JavaServer Faces
You have lots of choices when building user interfaces for server-side applications. Java developers who use servlets or JavaServer Pages (JSP pages) often rely on HTML user interface components for developing the user interface. This is mainly because HTML user interface components are the lowest common denominator that Web browsers support. The implication, of course, is that such Web applications do not have rich user interfaces, compared with stand-alone fat clients, and therefore less functionality and/or poor usability. While applets can be used to develop rich user interfaces, page authors may not be familiar with (or interested in learning) the Java language.
Developing Web Applications With JavaServer Pages 2.0
JavaServer Pages (JSP) technology, which abstracts servlets to a higher level, is an open, freely-available specification developed by the Java Community Process (JCP) for generating dynamic content, and a key component of the Java 2 Enterprise Edition (J2EE) specification. Many commercially available application servers (such as BEA WebLogic, IBM WebSphere, Live JRun, and Orion) support JSP technology.
Dynamic Web Data Analysis
Learn about an adaptable approach which separates programming tasks from Web page design tasks. This strong conceptual model encourages good design, enables re-use of data definitions, and is well-suited to the construction of dynamic user interfaces. The authors also illustrate the particular challenges you might encounter when you dynamically change the analysis performed by Web pages.
Go Beyond JSP with Dynamically Typed Languages
Signs of rust are starting to show with JavaServer Pages (JSP) amongst the Java Community. Longstanding conventions inhibit Java programmers from using Java code within Web pages now, and even frameworks that take Java Web development beyond JSP fall short of dynamic language capabilities. This article shows you Ruby's Web page development strategy and touches on Seaside's radical approach.
Govern your images with JSP code
If you code and support a Web site or have a page on the Internet, you know how difficult it can be to serve images that meet the needs of all your readers. This article proposes one solution that uses JavaServer Pages (JSP) tags to manage the images for you.
Invoking JavaServer Pages from MIDlets
In this article, I will show you how MIDlets can interact with JSP-based enterprise systems by walking you through an example. First, however, I will discuss the HttpConnection interface, which can be used for establishing HTTP connections.
JavaServer Pages Comparing Methods for Server-Side Dynamic Content White Paper
This white paper compares CGI, mod_perl, and PHP solutions with the JavaTM Servlet and JavaServer PagesTM (JSPTM) technologies for creating dynamic content with JavaTM technology. Java Servlet and JSP technology are products of the Java Community ProcessSM program, an open process used by Sun Microsystems since 1995 to develop and revise Java technology and specifications in cooperation with the international Java technology community.
JavaServer Pages Technology - White Paper
The JavaServer PagesTM (JSP) technology provides a simplified, fast way to create web pages that display dynamically-generated content. JSP technology was designed to make it easier and faster to build web-based applications that work with a wide variety of web servers, application servers, browsers and development tools. This paper provides an overview of the JSP technology, describing the background in which it was developed and the overall goals for the technology. It also describes the key components of a JavaTM technology-based page, in the context of a simple example.
JavaServer Pages White Paper
JavaServer PagesTM (JSPTM) technology provides a highly scalable method for creating dynamic content for the Web. As part of the JavaTM family of APIs, JSP technology shares the Write Once, Run AnywhereTM benefits of the Java platform, with easy access to a broad range of Java APIs. JSP technology enables a tiered development methodology that lets organizations leverage internal programming expertise to create applications that are fast to deploy and easy to maintain.
Macromedia Flash Remoting Makes Macromedia Flash an Alternative to JSP and Applets
When developing a web-based application in Java, developers have two options for presentation technology: JSP and Java applets. JSP is the Java version of a relatively standard web scripting technology, analogous to ASP, PHP, and ColdFusion. Applets are truly something unique in that they allow applications to run partially on the client's machine and partially on the server.
Open Source-Based Portal-Lite
The key to writing reusable code that returns its promise is in identifying a future use before making it reusable. Open Source implementatons and portals are the perfect opportunity to write reusable components such as the light-weight portals.
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
Servlets and JSP Pages Best Practices
Java Servlet technology and JavaServer Pages (JSP pages) are server-side technologies that have dominated the server-side Java technology market; they've become the standard way to develop commercial web applications. Java developers love these technologies for myriad reasons, including: the technologies are fairly easy to learn, and they bring the Write Once, Run Anywhere paradigm to web applications. More importantly, if used effectively by following best practices, servlets and JSP pages help separate presentation from content. Best practices are proven approaches for developing quality, reusable, and easily maintainable servlet- and JSP-based web applications. For instance, embedded Java code (scriptlets) in sections of HTML documents can result in complex applications that are not efficient, and difficult to reuse, enhance, and maintain. Best practices can change all that.
Servlets and JSP Step Up
The upcoming J2EE 1.4 includes the new Servlet 2.4 and JavaServer Pages (JSP) 2.0 technologies for Web application development in Java. This article offers a look at the new features in both specifications and provides sample code for each feature where appropriate. The article assumes familiarity with the previous versions: Servlet 2.3 and JSP 1.2. The examples presented were tested with Tomcat 5, which is included in the Java Web Services Developer Pack 1.2.
Using Eclipse with Jakarta Tomcat
Using Eclipse as a development environment for Java is great. Using an Eclipse Tomcat plug-in can help to better organize and integrate your Java and Web development projects. This article will guide you step-by-step through the installation of Eclipse, Jakarta Tomcat, and an Eclipse Tomcat launcher plug-in that will integrate them.