Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connecting with Servlet  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!