Solved

mime settings in Appache server

Posted on 2004-08-23
7
1,250 Views
Last Modified: 2008-01-09

Dear all,

I want to put my application in my web site, but my web hosting said they don't support wap or jad/jar settings, their server is FreeBSD servers with running Apache ,

I don't know if it is true or not ?, I thought that mime settings is something that I can configure ?,

my question is , is it a global parameter or can be specific for every web site ?

another question, do you know any free web hosting that supports wap, jad/jar ?

thanks for help
0
Comment
Question by:khamouda
  • 4
  • 3
7 Comments
 
LVL 15

Expert Comment

by:jimmack
ID: 11869997
I'm not certain how to add MIME types to Apache, but I know that there's plenty of information about it ;-)

You will need to add some of these MIME types to your Apache setup in order to allow J2ME downloads:

wbmp  image/vnd.wap.wbmp
wml  text/vnd.wap.wml
wmlc  application/vnd.wap.wmlc
wmls  text/vnd.wap.wmlscript
wmlscriptc  application/vnd.wap.wmlscriptc
jad text/vnd.sun.j2me.app-descriptor
jar application/java-archive

Since WML, JAD and JAR are just different terms for data that is transferred across the link, it is not important that your hosting company doesn't understand them.  For WAP, the "complicated" bit should be dealt with by your mobile network provider (ie. the conversion into the compressed binary formats used by WAP).  The JAD and JAR files are just downloadable files.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 11870010
Sorry.  Forgot to add...

When Apache has these MIME types configured, they apply to all sites on the server.

I don't know about any free hosts, but any host that provides the latest servers should be OK, since JAD, JAR and the WAP MIME types seem to have been included in all the latest servers for over a year now ;-)
0
 
LVL 1

Author Comment

by:khamouda
ID: 11870871

Ok I will assume that they have all these mimes, all I have to do is to change the JAR-URL in the jad file to point to the jar folder, and upload the  .html file that get generated in the bin directory ?

thats it ?

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 15

Expert Comment

by:jimmack
ID: 11875722
Normally, on a live site, you'd have a WML page that contains a link to the JAD file, eg:

MyPage.wml

<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
  <card id="card1" title="MyPage">
    <p>Download the demo using the following link:</p>
    <p>MyDemo MIDlet: <a href="MyDemo.jad">MyDemo</a></p>
  </card>
</wml>

This would rely on the fact that MyDemo.jad is in the same directory and that the JAD file contains the correct MIDlet-Jar-URL to the MyDemo.jar file.

If you provide HTML, then that will limit the phones that can access the page.
0
 
LVL 1

Author Comment

by:khamouda
ID: 11877208
but the address that will be used in the mobile is www.mine.net/Mydemo.jad or MyPage.wml ?

what I saw is mydemo.jad but your case it seems different
0
 
LVL 15

Accepted Solution

by:
jimmack earned 50 total points
ID: 11887326
:-)

In the example I posted, the WAP page that you access would be:  http://www.mine.net/MyPage.wml

This page should be displayed as follows:

MyPage
------------
Download the demo using the following link:
MyDemo MIDlet: MyDemo

(Where the last "MyDemo" text is the link)

Selecting the link should then access the JAD file.  When the handset gets the content type of ...j2me.app-descriptor, then the Java Application Manager on the handset should take over, display the MIDlet details (from the JAD file) and ask if you want to download/update the MIDlet on the handset.
0
 
LVL 1

Author Comment

by:khamouda
ID: 11888682

ok thanks ;)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
Multi-source agreements are important because they set standards that all manufacturers should follow to ensure that devices are compatible with multiple vendors. The multi-source agreement (MSA) is an agreement that establishes how multiple vendors…
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now