This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java Micro Edition and the fly likes Connecting with Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Connecting with Servlet" Watch "Connecting with Servlet" New topic

Connecting with Servlet

Muhammad Ammad Husain

Joined: Oct 16, 2002
Posts: 20
I have servlet running on\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
Ranch Hand

Joined: Mar 07, 2002
Posts: 1427
Your MIDlet can write a special HTTP header that is recognized the by your servlet.

Seam Framework:
I agree. Here's the link:
subject: Connecting with Servlet