|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
html error 404 page not found
I'm trying to make a wml site and I have it working on a bell phone and the "Openwave Generic Device Simulator", as well as a few other online simulators.
However, when I try it on a blackberry I get a 'html error 404 page not found' Any idea why? here's my code... <?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='home'> <p><strong>Welcome to MyPage</strong></p> <p>- <a href='#story3'>Story1</a></p> <p>- <a href='#story1'>Story2</a></p> <p>- <a href='#story2'>Story3</a></p> <p><small>Powered by me</small></p> </card> <card id='story1'> <p><a href='#home'>home</a></p> <p><strong>Story1</strong></p> <p>Story1 - text</p> <p><a href='#home'>home</a></p> </card> <card id='story2'> <p><a href='#home'>home</a></p> <p><strong>Story2</strong></p> <p>Story2 - text</p> <p><a href='#home'>home</a></p> </card> <card id='story3'> <p><a href='#home'>home</a></p> <p><strong>Story3</strong></p> <p>Story3 - text</p> <p><a href='#home'>home</a></p> </card> </wml> |
|
#2
|
|||
|
|||
|
Also tried on a nokia 3220 and got "invalid web address"
|
|
#3
|
||||
|
||||
|
Are you typing the full url, or are you trying http://yoursite.com/wml/ or whatever?
ie , are there any redirects or forwards taking place?
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#4
|
|||
|
|||
|
Page not found on redirection
Quote:
I’m actually suffering from the same problem. I think it’s caused by the redirection problem. I’m doing redirection from a WAP page to a URL (http://....), well, it works on web and my Yospace WAP emulators but not on my actual Nokia 2650. Do you know how I can fix this? Here's my code. I use WURL Code:
<%@ page language="java" %>
<%@ page session="false"%>
<%@ taglib uri="/WEB-INF/tld/wall.tld" prefix="wall" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.net.URLEncoder" %>
<%@ page import="java.util.Enumeration" %>
<jsp:useBean id="util" scope="request" class="com.bc.agp.AgpUtils" />
<wall:document><wall:xmlpidtd />
<wall:head>
<wall:title>Processing...</wall:title>
<wall:cool_menu_css />
</wall:head>
<wall:body>
<%!
static final String AGP_URL = "http://wap.mygamma.com/agp/7920/?";
String akey = "";
String itemdesc = "";
String gmdvalue = "";
String agpServiceId = "";
String urlParams = "";
String parameter = "";
Enumeration enu = null;
%>
<%
itemdesc = request.getParameter("itemdesc");
gmdvalue = request.getParameter("gmdvalue");
agpServiceId = request.getParameter("agpServiceId");
enu = request.getParameterNames();
response.setContentType("text/vnd.wap.wml");
while (enu.hasMoreElements()) {
parameter = enu.nextElement().toString();
urlParams += parameter + "=" + URLEncoder.encode(request.getParameter(parameter), "UTF-8") + "&";
}
akey = util.generateAkey(agpServiceId);
util.storeUrlParameters(akey, urlParams);
//This forwards this to Buzzcity AGP
response.sendRedirect(AGP_URL + "gmdvalue=" + gmdvalue + "&itemdesc=" + itemdesc + "&akey=" + akey);
%>
</wall:body>
</wall:document>
Thank you. Warm Regards, Melvin Wong |
|
#5
|
||||
|
||||
|
I was testing something the other day on a SGH-D500 http://wap.blah came up 404 while http://wap.blah/ was fine.
Try adding trailing slashes to the URLs if they are for directories - it might fix it. Hey, gotta say I'm impressed to see wall tags being posted! Neat.
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > html error 404 page not found |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|