personalization, a recurring requirement in most corporate web applications, can be a very effective tool for streamlining web applications and enhancing the web users experience. in many cases, personalization and security requirements go hand in hand; they can be dictated by corporate security principles and regulations that exist in banks, insurance companies, and any other organizations.
this article targets enterprise architects and developers who are willing to invest a little time to develop a set of easy-to-use, reusable personalization components that are powerful enough to meet the needs of many enterprise applications.
the personalization components that we describe here are based on rules declared and configured in an xml file. personalizing web applications with these components requires writing little or no java code. web pages are personalized using jsp custom tags, shifting the complex task of application personalization from the j2ee developers to web page designers.
two typical examples
suppose were developing a web application for viewing and maintaining customer account information. the account is defined by an account id; customer information such as name, address, and phone number; and billing information such as a bank account.billing information is typically classified as sensitive information. in our example we require that only a subset of employees, account specialists and account managers, should be permitted to view the banking information. however, for operational reasons, all employees need to have access to nonsensitive account data, such as customer name and address.
in addition, we require that account maintenance functions, such as terminating or editing accounts, should be available to account managers only.
this example is typical for many applications that provide role-based web access to corporate data.
2. personalized shopping site 【程序编程相关:Web Services + the G】
1. personalized customer account maintenance application 【推荐阅读:A Fight to the Finis】here we want to develop a personalized shopping site that recognizes high-value customers and rewards them for their loyalty. at checkout we want to display a coupon for 10% off the next order to customers who purchased $1,000 worth of merchandise over the past 365 days (one year).how would you develop these examples? coding the personalization rules directly into the applications should not be an insurmountable problem ... 下一页