O'Reilly logo

Professional Alfresco: Practical Solutions for Enterprise Content Management by Kevin Roast, Michael G. Uzquiano, Michael Farman, John Newton, David Caruana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Advanced Web Scripts

WHAT'S IN THIS CHAPTER?

  • Internationalizing Web scripts

  • Configuring Web scripts

  • Processing complex HTTP requests

  • Caching Web scripts

  • Setting advanced Descriptor options

The primary design goal of the Web Script Framework is to ensure that simple Web scripts are easy to develop, but advanced Web scripts are still possible. Advanced Web scripts support features such as rendering outputs in multiple languages, exposing and adhering to configuration options, and handling HTML form uploads.

This chapter explores the finer details of the Web Script Framework that allow the development of such advanced features.

INTERNATIONALIZATION

Internationalization (often abbreviated to I18N) is an important consideration when developing any piece of software, and this includes developing a Web script. For human-readable Web script responses it is often necessary to render the output in the preferred language of the user or the preferred language of the client. This means that human-readable text cannot be placed directly in the Web script response template. Therefore, the Web Script Framework employs the common practice of allowing text to be placed into resource bundles, where a resource bundle exists for each supported language.

This is easily demonstrated by creating a simple Web script that renders an HTML message.

  1. You first need to log in to Alfresco Explorer.

    1. Type the following in your Web browser, and log in with the user name admin and password admin if requested:

      http://localhost:8080/alfresco ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required