导航规则定义了根据用户对 Crystal Enterprise 的登录尝试是成功还是失败而执行的导航操作。导航规则将用户重定向到另一个页面,具体取决于返回的字符串是指明登录尝试成功还是指明失败。导航规则在属性视图中配置并自动存储在 faces
文件中。
Logon
组件。“logon_success”
,然后单击“确定”。“logon_failure”
,然后单击“确定”。现在您必须创建一种操作方法以对用户的登录状态执行检查并返回字符串“logon_success”或“logon_failure”。
Logon
组件。identity = getIdentity();
if (identity == null)
return "logon_failure";
if(!identity.isLoggedOn())
return "logon_failure";
return "logon_success";
此方法检查 Identity
Bean 是否存在及其登录状态(此 Bean 包含用户的会话信息)。如果 Identity
Bean 不是 null 并且用户已登录到 Crystal Enterprise,则返回“logon_success”字符串,否则表示用户未登录进去,并会返回“logon_failure”字符串。
Business Objects http://www.china.businessobjects.com/ 支持服务 http://www.china.businessobjects.com/services/services.htm |