WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 20th, 2004, 04:25 PM
Chris_Gilbert Chris_Gilbert is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: London
Posts: 166 Chris_Gilbert User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 32 m 5 sec
Reputation Power: 6
Combining WML & ASP

How do I combine WML and ASP to create dynamic pages for viewing on WAP enabled mobile phones? I know that when i request a page from my mobile it must request a .wml page such as mypage.wml but for there to be some serverside processing using ASP the file needs to end in a .asp extension. How do i do it? Do i have my ASP in the WML page or does my WML page need to somehow call an ASP page which then in turn outputs a WML page somehow?

Thaks in advance

Chris

Reply With Quote
  #2  
Old March 22nd, 2004, 01:52 PM
Jaiyan Jaiyan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 13 Jaiyan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Chris,

There's a few things that you need to do to use ASP with WML. All very simply though if you know ASP and WML to a minimal extent:

1) As you know already, the extension of any WML page that includes ASP scripts needs to be .asp and not .wml

2) Secondly, at the top of the page, you need to add these headers to tell the server that although your WAP page has a .asp, it is a WAP page to be dealt with in a WAP way.
Code:
<% Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">


3) In regards to the structure of the page, you simply create the WAP code as you would for a simple .wml page, and just like ASP in HTML pages, you simply interweave the ASP code into the WML code through the use of the <% and %> tags.

There's a number of tutorials available on the net (ASPFree has some I believe) so have a look and see if they help.

Good luck!

Lloyd

Reply With Quote
  #3  
Old April 2nd, 2004, 12:51 PM
zapa zapa is offline
Mentat of IX
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Bucuresti / Toronto
Posts: 112 zapa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 sec
Reputation Power: 6
Send a message via ICQ to zapa
so i'm assuming this would be the same method for using wml in jsp , servlets and php ?
__________________
FreeBSD , dooing more with less since 10 years ago

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Combining WML & ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway