|
PowerFolder 工作流服务器版本0.5 试驾之旅(5)(1)
Web Page Development and Web Client API Web页面开发和Web客户端提供的API 3.1 Overview 概述 To create or edit existing web pages, from the PowerFolder Console click 'Develop', then 'Web Pages'. You can either edit an existing web page by clicking the 'Edit' button beside it or create a new web page by entering its name in the box next to 'New Web Page' and clicking 'Create'. Remember, new and editted web pages cannot be seen by outside viewers until they are deployed under the 'Administer' section. 为了创建页面和编辑已有页面,从PowerFolder控制台单击Develop,然后Web Pages.你可以编辑一个现存的页面,通过单击它旁边的Edit按钮,或者通过在New Web Page' 旁的文本框中输入它的名字并且单击'Create'按钮来创建一个新页面。记住,新的 和编辑的页面不能从外部观察者看到直到他们在'Admimister'部分被发布为止。 Standard HTML is rather bland. It just displays things for the user to see, but it can't understand commands issued by the user or 'do anything'. It can't read HTML 'form' parameters, it can't use user submitted information to change the state of a workflow. 标准的HTML是相当谦逊的。它仅仅显示用户看到的,不过它不能理解用户发出的做 任何事情的命令。它不能阅读HTML form参数,它也不能利用用户提交的信息来改变工作 流的状态。 That is where 'client' comes in. By default, it is included with every web page in PowerFolder. Its role is to simplify the process of making HTML 'intelligent'. 这就是client进入的原因。缺省情况下,它被包含在PowerFolder的每个页面之 中。它的作用是简化使HTML智能的过程。 Web pages in PowerFolder use Java JSP scripting and syntactically correct scripting means following the JSP conventions. For a general script area within a web page, start it with '<%' and end it with '%>'. For a one line script that writes output that the user will see, start it with '<%= ' and end it with '%>'. PowerFolder中的web页面使用jsp脚本,通过JSP转换来得到正确的脚本含义。对 于一个页面中的脚本区域,它开始于<%,结束于%>,对于一行中的脚本,用于输出给用户可 见的内容,开始于<%=,结束于%>。 The goal of 'client' is to minimize the learning curve and make the scripting process more
|