File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Doing JSP for Cell Phone Web Site - What Protocol? WAP? XHTML? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Doing JSP for Cell Phone Web Site - What Protocol? WAP? XHTML?" Watch "Doing JSP for Cell Phone Web Site - What Protocol? WAP? XHTML?" New topic
Author

Doing JSP for Cell Phone Web Site - What Protocol? WAP? XHTML?

Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
Does anyone know where I can find out what protocol each cell phone out there uses? Is everyone still using WAP? Or is it XHTML or something else now?

I'm doing a site in JSP and want to be able to serve the same data in whatever format the cell phone browser understands, so I need to be able to grab the browser ID (in JSP) and then choose the proper format/protocol (WAP, XHTML, HDML, etc).

Thanks!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

Since this is less about JSP than about the cell phones (JSP can be used to serve any type of text markup), I'm going to move this along to the J2ME forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
wap, that is exactly what we are using.

html/xhtml might work on some cellphones, but some cellphones require very strict wap/xml syntax.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
WAP 1.x phones accept WML as the markup language.
WAP 2.x phones accept both WML and XHTML as the markup language.

W3schools.com has a nice little tutorial for WML.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Dan Bizman
Ranch Hand

Joined: Feb 25, 2003
Posts: 387
Thanks guys. Any idea if there's either a list of which phones accept WAP 1.x vs 2.x or a way to tell (in JSP) which browser the phone has AND a list of which browsers accept 2.x or 1.x?

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doing JSP for Cell Phone Web Site - What Protocol? WAP? XHTML?