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

Connecting with Servlet

 
Muhammad Ammad Husain
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have servlet running on www.myserver.com\servlet\myapp
i acess it through my mobile simulator(j2me)how my servlet recognize it that it this request is originate from mobile device or normal Internet browser.Because i have to be careful while giving response to mobile.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your MIDlet can write a special HTTP header that is recognized the by your servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic