Add the content spot to the JSP file
将内容点添加到JSP 文件中
Add code to populate the content spot.
添加代码以植入内容点。
Apply rules to application content spot.
将规则应用于应用程序内容点。
Associate the rule with the content spot.
把规则和内容点关联起来。
Create a new resource and a content spot.
创建新的资源和内容点。
To create a new resource and a content spot.
要创建新的资源和内容点。
For now, you will associate each table with a content spot.
就现在来说,您将把每个表与一个内容点相关联。
For now, you will simply associate the table to a content spot.
这样,您将可以简单地将表和内容点关联在一起。
Apply the content spot that you just created to the ChooseLayout.jsp file.
将您刚创建的内容点应用于ChooseLayout .jsp文件。
These content spot references are published when you publish rules and campaigns.
在您发布规则和活动的同时,这些内容点的引用也被发布。
Click the icon in the menu bar for the personalization Content Spot Wizard V4.
单击菜单栏中个性化Content SpotWizardV4的图标。
Create a content spot on a JSP page to define where a business rule will be applied.
在JSP页面上创建内容点以定义在哪里应用业务规则?
Now, add your rule to a content spot within your Web application by completing the following steps.
现在,通过完成下列步骤,将您的规则添加到Web应用程序中的内容点。
Now that you have your new rule defined and assigned to a content spot, you can publish the project.
既然您已经定义了新规则并且将它分配给了内容点,那么现在就可以发布该项目了。
Personalization also provides a preview page that is accessible when a rule or content spot is open.
Personalization也提供一个预览页面,在一条规则或一个访问点打开的情况下可以访问该页面。
Now, associate the rules you just created with the new content spot that you created earlier in this exercise.
现在,把您刚才创建的规则与您在本练习前面部分中创建的新内容点关联起来。
When we defined our content spot above, we defined it to be populated with content from our layouts content resource.
当我们定义上面的内容点时,定义使用layouts内容资源的内容对它进行填充。
The tables will eventually be populated with content by a rule, but for now, you will associate each table with a content spot.
这两个表最终将按照规则被植入内容,但现在您将把每个表与一个内容点关联起来。
The above changes are required for every content spot that you add to a page to link to the WebSphere Personalization run time.
对于您添加至页面中以链接到WebSpherePersonalization运行时的每个内容点来说,上述更改都是必需的。
Personalization no longer manages class files, and it does not store resource collection or content spot classes in its repository.
Personalization不再管理类文件,它不在自己的库中存储资源收集类或内容点类。
Drag and drop the content spot, LayoutChoiceContentSpot.class, onto the JSP file at the location just before the text: Put your text here.
将内容点LayoutChoiceContentSpot . class拖放到JSP文件上,放在文本Putyourtexthere的前面。
Select the Source tab of the edit window to view the useBean tags that were generated when you dropped the content spot class files in the JSP.
选择编辑窗口的Source选项卡以查看在您把内容点类文件放置到 JSP 中时生成的useBean标记。
Assign a rule to each of the content spots by selecting the content spot, and then clicking on the Edit button in the lower right pane (Figure 40).
通过选择内容点,为每个内容点分配一个规则,然后单击右下方窗格中的Edit按钮(图40)。
If you want to assign a rule to a content spot that is associated with a campaign, then you will need to create a campaign (try this later if you wish).
如果您想将规则分配到与竞销关联的内容点,则需要创建竞销(如果愿意,以后尝试这一操作)。
Assign the GetGroupNews rule to the GroupnewsSpot content spot by selecting the content spot, and then click on the Edit button in the lower right pane.
选择groupnewsspot内容点,把GetGroupNews规则分配给它,然后单击右下方窗格中的Edit按钮。
Figure 17 shows the box to check on the "Resource Generation Options" dialog to generate the content spot, and Figure 18 shows the files that the wizard generates.
图17显示了“ResourceGenerationOptions”对话框上用于生成内容点的复选框,而图18显示了向导生成的文件。
Next, add the content spot that you created in the previous step to the View.jsp file, and then add code to reference the fields that you want displayed in the content spot.
接下来,将您在前一步中创建的内容点添加到View . jsp文件中,然后添加代码来引用您想要在内容点中显示的域。
The whole purpose for the content spot is to allow a business user to define a rule (which we will soon create) to populate this content spot with data from the layouts resource.
内容点的整个目的是允许商业用户定义一条规则(我们将马上创建)以用layouts 资源上的数据填充这个内容点。
Then, specify that you want the content spot to represent a business rule that will select content from our Layouts content resource: from the Choose a resource drop-down menu, select Layouts.
然后,指定您想让内容点表示一种业务规则,该业务规则将从Layouts 内容资源中选择内容:从Choosearesource下拉菜单中选择 Layouts。
He had no wish to perfect his escape — was content to remain in that enchanting spot until retaken.
他不想再跑了,没有哪一次的逃亡能够如此完美——这是一个迷人的令人陶醉的地方;他已经心满意足,不愿醒来。
应用推荐