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:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old May 10th, 2005, 03:18 PM
snail snail is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 67 snail User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 56 m 25 sec
Reputation Power: 4
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>

Reply With Quote
  #2  
Old May 10th, 2005, 03:19 PM
snail snail is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 67 snail User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 56 m 25 sec
Reputation Power: 4
Also tried on a nokia 3220 and got "invalid web address"

Reply With Quote
  #3  
Old May 11th, 2005, 09:07 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,670 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 6 h 10 m 50 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.

__________________

Reply With Quote
  #4  
Old March 1st, 2006, 09:03 AM
melwong melwong is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 7 melwong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 15 sec
Reputation Power: 0
Page not found on redirection

Quote:
Originally Posted by jabba_29
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?


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

Reply With Quote
  #5  
Old March 1st, 2006, 07:04 PM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > html error 404 page not found


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 6 hosted by Hostway