Develop Wap pages in the domino environment-1: 1st pages

Source: Internet
Author: User

Develop Wap pages in the domino environment-1: 1st pages


 

Develop the WAP page in the domino Environment


1.   Start preparation
1.1. Preface

In fact, the WAP Technology has nothing to do with Lotus Domino. To put it simply, WAP is the standard format of the webpage on the mobile phone, just like viewing the webpage on the computer, which is in the same HTML format. Therefore, you can understand that the page on the mobile phone is called WAP. Of course, WAP and HTML are very different. So I want to write this teaching material.

Therefore, basically, Web servers that provide HTML page services can provide Wap pages. For example, IIS and Apache Tomcat. The reason why we want to introduce how to use Domino to develop Wap pages is not because domino has any advantages in developing WAP, but because Domino senior programmers cannot master the WAP development skills? That's all.


1.2. Configure the development environment

L       Lotus Domino: this technology is intended for Lotus programmers. If you do not install and design Lotus, this article will not be very useful to you. The Lotus version I use is R7. However, both R5 and R6 can be used.

L       Winwap: This is a simulated mobile browser. You can search for and download one on the Internet. Installation is also very simple. Official Website: http://www.winwap.com

L       ACDSee: I believe most people have installed the software on their machines. The reason why this software is required is that only pictures in wbmp format can be displayed on WAP, and jpg and GIF formats cannot be displayed, ACDSee can easily convert the image format in batches. If you need a beautiful interface, you need this software to convert the image format.

L       Mobile phones that can access the Internet: the final result still needs a mobile phone for verification. Therefore, you must have a mobile phone that can access the internet. Of course, your Domino server must also have a real IP address on the Internet, in this way, the mobile browser can access your Domino server. Otherwise, you can only use winwap to simulate the test.


2.   Design 1st pages

Almost all teaching materials about development tools should first introduce a hello World Program to attract readers. Then, we can quickly design and implement 1st Wap pages.

1)Create a test database on the Domino server named test. nsf

2)Open designer and create a new form

3)Enter the following content in the form:

<? XML version = "1.0"?>

<! Doctype WML public "-// wapforum // dtd wml 1.1 //" http://www.wapforum.org/DTD/wml_1.1.xml ">

<WML>

      <Card>

             Hello world !!!

      </Card>

</WML>

4)Modify the form attributes, select another type in "Web access-content type", and enter text/vnd. WAP. WML, which is very important. entering this content indicates that your page is in WML format rather than HTML format.

 

5)Save the form, named wapsample1

6)Okay. Open the URL in winwap, http: // 127.0.0.1/test. nsf/wapsample1? Readform, this also has a very critical content, you must use? Readform to open the form, because, if you use normally? When OpenForm opens the form URL, an error will be displayed, because the WAP page can be displayed normally only when the file is read-only ,? Openpage and? OpenDocument can all be used,? Editdocument does not work. View results:

 

7)If you have a mobile phone that can access the Internet, enter the website address to view the result, and change 127.0.0.1 to the IP address on the Internet of your Domino server.

 


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.