Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic