Solved

WAP Download

Posted on 2004-09-17
6
739 Views
Last Modified: 2013-12-27
I'm new to wap topic. Now i'm doing a project that allow people to send their sms request to download ringtones, java application, wall paper and etc to their phone. But i have little knowledge about this. Hope all the experts can help me.

FYI, I'm using apache, JSP and kannel to develop this product.

1. I know that i need to configure .htaccess file on the apache server to accept wml E.g.
AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
AddType text/vnd.wap.wml wml
AddType audio/midi mid
But if i'm only using tomcat then what should i configure it?

2. I stored all the content(ringtones, wallpaper, java application) in the mysql database (using BLOB) so how can i retrieve the content when the user want to download it? I cannot just put a hyperlink to the file because all the file is inside the database.

3. Is't possible to get the phone model when the user access to my wap page? Is't i need to do content conversion for different phone manufacture?

4. How can i know whether the user has successful download the content in order to charge them?

Many Thanks.
0
Comment
Question by:hawkly
  • 2
6 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 68 total points
ID: 12100006
dunno bout jsp but you read the file into the Response.ContentStream, set the ContentType, ContentSize and post the data back to the phone
0
 
LVL 4

Expert Comment

by:bhpr
ID: 12275240
try to find mime type in the response, that might have the name of model number.


-bhpr
0
 
LVL 4

Assisted Solution

by:bhpr
bhpr earned 66 total points
ID: 12275269
OR, u can do one thing, you first ask the phone type, then process downloading of the content.

-bhpr
0
 
LVL 2

Assisted Solution

by:virtue79
virtue79 earned 66 total points
ID: 12457314
>1. I know that i need to configure .htaccess file on the apache server to accept wml E.g.
>AddType text/vnd.sun.j2me.app-descriptor jad
>AddType application/java-archive jar
>AddType text/vnd.wap.wml wml
>AddType audio/midi mid
>But if i'm only using tomcat then what should i configure it?

The MIME types can be configured at tomcat_home_directory/conf/web.wml in Tomcat.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
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…

730 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