OTA configuration server

Source: Internet
Author: User
Tags xml example
There is a 388 document:
1. Server tool: Apache Tomcat
Http://jakarta.apache.org/tomcat/index.html

2. Prepare the jar and Jad files as required (test. jar and test. JAD)

3. Create a new folder named test under the webapp \ Root subdirectory under the tomcat installation directory.

4. Test the jar and Jad files in the test directory.

5. Create an index. xml file in the test directory.

6. Enter the indx. xml file according to the following DTD.

<? XML version = '1. 0' encoding = 'utf-8'?>
<! -- Generated by XML authority -->
Element index (File *, dir *, *)
Element file (# pcdata)
ATTLIST file name CDATA # required
Href CDATA # required
Type (jar | RNG | IMG) # required
Vendor CDATA # implied
Version CDATA # implied
Size CDATA # required
Date CDATA # implied
Price CDATA # implied
Time CDATA # implied
Adf cdata # implied
Element Dir (# pcdata)
ATTLIST dir name CDATA # required
Href CDATA # required
Element A (# pcdata)
ATTLIST a href CDATA # required

7. indx. xml example File

<? XML version = "1.0" encoding = "UTF-8"?>
<! Doctype Index System "http://j2me1.motorola.com.cn/mot_dtd/kjavadownload/index.dtd">
<Index>
<File name = "test" href = "test. jar "type =" jar "vendor =" a2942c "version =" 0.0.1 "size =" 9935 "date =" 2002-09-18 "time =" 19:36:51 "ADF =" test. jad ">
My application test.
</File>
</Index>

8. Start your Tomcat

9. Open the 388 mobile phone, go to Java/my software, set the download method, select wireless download, enter the URL configuration table, set the name to test, and host name
Set as the host address for running Tomcat server, port number 8080 (Tomcat default), default path to test

10. Click Download and select test as the download server. Then you can download your program through Ota.

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.