« Home « Chủ đề quản lý web

Chủ đề : quản lý web


Có 100+ tài liệu thuộc chủ đề "quản lý web"

Bắt đầu với IBM Websphere smash - p 24

tailieu.vn

Figure 9.4 Main landing page. Create a new file called /public/index.gt, whose contents are shown in Listing 9.2.. Listing 9.2 Main Landing Page (/public/index.gt). <title>sMash Security</title>. <h1>Welcome to the Security Application</h1>. getRelativeUri(‘my/index.gt’) %>">Protected page</a>.. </h2>. You should then be taken to our main landing page, as shown in Figure 9.4.. To enable security, add the line shown in Listing 9.3....

Bắt đầu với IBM Websphere smash - p 25

tailieu.vn

<h2>Your group(s):</h2>. <li>${g}</li>. <h2><a href="<. getRelativeUri('/logout.gt')%>">Logout<a></h2>. The final page we need to add is a logout page. Listing 9.9 creates a logout page. You often should do some housekeeping on the “user” Global Context and remove any session-like variables that you do not want to persist into the user’s next access to the site. Listing 9.9 Logout Page (/public/logout.gt). zero.core.security.LoginService.logout();....

Bắt đầu với IBM Websphere smash - p 26

tailieu.vn

logger.INFO {"Starting with: ${args}"}. def URL = "https://crownjewels.acme.com/resources/${args.service}". if ( args.id. "/${args.id}. args.remove('service') args.remove('id'). args.eachWithIndex. logger.INFO {"URL: ${URL}"}. def doc = new XmlParser().parse( response.responseBody ) logger.INFO {"Results : ${doc}"}. In this example, we make a dynamic call to some service as defined by the method parame- ters, and receive an XML document as a response. In the first several lines,...

Bắt đầu với IBM Websphere smash - p 27

tailieu.vn

from the receiverUrl value in the event handler. We’ve surrounded it by logger statements including timestamps. Let’s take a mental trip over to the receiving application for a moment, forgetting that it’s actually residing within the same application on this sample. As you can see in the kicker event configuration, we are calling ”/resources/kickReceiver. which in this sample is another...

Bắt đầu với IBM Websphere smash - p 28

tailieu.vn

using most are the relative URI methods, and they are shown in Listing 11.1.. Listing 11.1 Java Relative URI API. static java.lang.String getRelativeUri(java.lang.String path) static java.lang.String getRelativeUri(java.lang.String path,. static java.lang.String getRelativeUri(java.lang.String path, java.util.Map<java.lang.String,java.lang.String>. queryParams) static java.lang.String getRelativeUri(java.lang.String path,. java.util.Map<java.lang.String,java.lang.String>. queryParams, java.lang.String fragment). So, if our calling script was located at http://localhost:8080/path/uriutils.gt, we would get the URIs shown in Listing 11.2.....

Bắt đầu với IBM Websphere smash - p 29

tailieu.vn

Figure 11.7 Manage Repository dialog Figure 11.6 Add Dependency dialog. ptg Figure 11.8 ACF dependency added. As you can see, we no longer get the alert dialog. Please see the WebSphere sMash documentation for more details (http://www.projectzero.org/sMash/1.1.x/. Assemble Flow. WebSphere sMash comes with several powerful built-in activities. Custom activities can also be created to extend the Assemble Flow system. Let’s...

Bắt đầu với IBM Websphere smash - p 30

tailieu.vn

ptg Take a look at the newly created index.html page (see Listing 12.1). By default, WebSphere sMash enables the light blue-hued soria theme, as shown in Listing 12.1.. Listing 12.1 Dojo-Enabled index.html Page. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">. <html xmlns="http://www.w3.org/1999/xhtml">. <style type="text/css">. @import "/dojo/resources/dojo.css";. src="/dojo/dojo.js". Line 10 djConfig="parseOnLoad: true"></script>. <script type="text/javascript">. dojo.require("dojo.parser". <body class="soria">. Let’s continue on to the parts that actually instantiate Dojo,...

Bắt đầu với IBM Websphere smash - p 31

tailieu.vn

282 Chapter 12 Client-Side Programming with the Dojo Toolkit. Table 12.1 Functional Requirements and Related REST Calls. DBA—A Complete RIA Using WebSphere sMash and Dojo. We have also heard that they want the application up and running by the end of the week!. We have enough information to sketch out a flow diagram of the application. Figure 12.8 provides a...

Bắt đầu với IBM Websphere smash - p 32

tailieu.vn

292 Chapter 12 Client-Side Programming with the Dojo Toolkit. Figure 12.13 Database schema tree listing. Then it creates a new Tree instance, passing in the backing DataStore, and setting up a handler for when a leaf node on the tree is clicked. Back in the load schema function, the accordion container is advanced to show the schema tree to the...

Bắt đầu với IBM Websphere smash - p 33

tailieu.vn

ptg Figure 13.1 Adding PHP dependency to your application. PHP Applications. The WebSphere sMash development team is working hard to address these issues to provide near full support for all PHP APIs and applications. Check the Project Zero website for the latest list of applications that are known to work with WebSphere sMash. The following popular PHP applications are known...

Bắt đầu với IBM Websphere smash - p 34

tailieu.vn

312 Chapter 13 PHP in WebSphere sMash. Listing 13.5 Common Template for PHP Extension Classes. import com.ibm.phpj.xapi.ExtensionBaseImpl;. import com.ibm.phpj.xapi.RuntimeContext;. import com.ibm.phpj.xapi.annotations.XAPIExtension;. import com.ibm.phpj.xapi.annotations.XAPIFunction;. You can choose to have a public “PHP” function name, and a private “Java” name. For example, the PHP annotation of the function could be called my_function , whereas the actual Java function name could remain myfunction...

Bắt đầu với IBM Websphere smash - p 35

tailieu.vn

ptg Figure 13.10 Results of a simple_xml request. There are few topics that should to be discussed on this sample. First, the get_connection() call requires the zero:zero.php.connection dependency. So, it needs to be added to the project, or else you will receive an error about a missing function. Technically, you also need to enable the zero.php.ConnectionExtension , but it’s enabled...

Bắt đầu với IBM Websphere smash - p 36

tailieu.vn

This can be used for system-level processing that needs to occur without user interac- tion (see Table 13.13).. Table 13.12 CSFT Functions. Table 13.13 Login Service Functions. ptg Table 13.14 Database General Functions. Manager mgr—DataSource manager to use.. Manager—Handle to the DataSource Manager.. Creates and returns a DataSource of the given type. As soon as one of the mechanisms is...

Bắt đầu với IBM Websphere smash - p 37

tailieu.vn

Returns the length of the Clob resource data.. Clob handle—The source Clob to process.. The length of the Clob as a double.. Returns the contents of the Blob resource as a string.. Blob handle—The source Blob.. Returns the length of the Blob resource data.. Blob handle—The source Blob to process.. The length of the Blob as a double.. Returns the...

Bắt đầu với IBM Websphere smash - p 38

tailieu.vn

Groovy also supports the usual escaping of quotes (see Listing A.7).. Listing A.7 Escaping Quotes. Listing A.8 Quotes in Heredocs. We can modify that behavior or retrieve the variable by providing our own getter method (see Listing A.9).. Listing A.9 Changing Default Variable Access. To do this, you need to create a field pointer, as shown in Listing A.10.. ptg...

Bắt đầu với IBM Websphere smash - p 39

tailieu.vn

Adding elements to a map is just as easy as accessing elements (see Listing A.38).. Listing A.38 Adding Elements to a Map. operator, as shown in Listing A.39.. Listing A.39 Map Concatenation. Finding keys and values are still done in the familiar Java ways (see Listing A.40).. Listing A.40 Retrieving Keys and Value from a Map. A more sophisticated range...

Bắt đầu với IBM Websphere smash - p 40

tailieu.vn

FirstElementLists, 104 zcontains method,. zdelete method, 105 zget method, 104-105 zpost method, 104 zput method, 104 global context, 100 lists, 102. zcontains method, 103 zdelete method, 103 zget method, 102-103 zpost method, 102 zput method, 102 maps, 106. zcontains method, 107-108. zdelete method, 107 zget method, 106-107 zpost method, 106 zput method, 106. zcontains method, 101-102. zdelete method, 101 zget...

Bắt đầu với IBM Websphere smash - p 41

tailieu.vn

maps, 106 objects, 101 Java APIs, 86. FirstElementLists, 94-95 Java APIs, 86. loading data using (ZRM Test Page), 183-184. 183-184 ZRM Wizard, 178 ZSO, timers, 239

Hướng dẫn tạo trang web

tailieu.vn

B ướ c 1: T o trang Web ạ B ướ c 1: T o trang Web ạ. Web Site Wizard cho phép b n t o Web site ạ ạ Web Site Wizard cho phép b n t o Web site ạ ạ. B2: B2: Nh n vào Nh n vào ấ ấ Web Sites Web Sites đ xem...

7 bước thiết kế trang web ấn tượng và hiệu quả

tailieu.vn

Trên đây là các bước để giúp bạn có thể tạo các trang web tốt. Chọn tập các kí tự cần mã hóa (character set).. Ví dụ:. Ví dụ: kí tự “ế” được biểu diễn bằng hai điểm mã. Bảng mã Unicode. UCS-2 được dùng trong các hệ quản trị cơ sở dữ liệu như SQL Server 7.0/2000, Microsoft Access...