This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes servelet application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servelet application" Watch "servelet application" New topic
Author

servelet application

bidmi robson
Greenhorn

Joined: Sep 12, 2010
Posts: 16
can anyone please show me the way to writting a java servlet application that will be accessed through a mobile phone...i mean the client side is to be on the phone ..i`ve never written a mobile application before so kindly help me out if you know please.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

A servlet is a servlet, regardless of what's accessing it.

What specific issue are you trying to address?
bidmi robson
Greenhorn

Joined: Sep 12, 2010
Posts: 16
David Newton wrote:A servlet is a servlet, regardless of what's accessing it.

What specific issue are you trying to address?

i want to use this as my undergraduate project..a database application containing records of crime committed by people..the mobile device is what the law enforcement agents will use for the record checking..but also if the person caught has no previous record,the same device is used to enter new record based on a stipulated parameter.xample the social security number of such person.... so how can i go about it....?
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
What, specifically, are you asking about:
  • writing the mobile application
  • writing a servlet
  • having the mobile app communicate with the servlet
  • creating the database for this
  • accessing the database from the servlet
  • something else

  • ?
    Abimaran Kugathasan
    Ranch Hand

    Joined: Nov 04, 2009
    Posts: 2066

    With the MVC architecture, we only need to care about the viewer for this application, all the other parts are same as a normal web application? I think, for viewer part, we can use XHTML for mobile browser?

    Somebody Please confirm?

    Thanks!


    |BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
    bidmi robson
    Greenhorn

    Joined: Sep 12, 2010
    Posts: 16
    Abimaran Kugathasan wrote:With the MVC architecture, we only need to care about the viewer for this application, all the other parts are same as a normal web application? I think, for viewer part, we can use XHTML for mobile browser?

    Somebody Please confirm?

    Thanks!

    well you seem very sure of what you are saying. so can you help me on how to start?
    bidmi robson
    Greenhorn

    Joined: Sep 12, 2010
    Posts: 16
    Lester Burnham wrote:What, specifically, are you asking about:
  • writing the mobile application
  • writing a servlet
  • having the mobile app communicate with the servlet
  • creating the database for this
  • accessing the database from the servlet
  • something else

  • ?

    i mean write the application using servlet and accessing it through mobile phone....i dont know if it sounds stupid but i cant think of any better way to say it than this...help me.
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    Are you asking how to write a servlet, or how to write a mobile phone app? Is it a phone app, or just a web page created for phone-sized displays? Or...?

    If this is *your* undergraduate project shouldn't you be telling *us* how you've gone about getting started, then asking specific questions as they arise?
    Tim Holloway
    Saloon Keeper

    Joined: Jun 25, 2001
    Posts: 16158
        
      21

    As David said, a servlet is a servlet, so whether the client is a mobile phone or not doesn't matter to it.

    On the other hand, mobile phones vary a lot in their web access capabilities. Older, less powerful phones might not have web browsers on them, but still have web access. There's a special XML format called WAP that works for those devices. I think most phones these days can do HTML, however, so WAP is no longer that common.

    The only thing specific to mobile HTML webapps is that your display area is going to be much smaller - 320x240 pixels is typical, and that's including frames and borders. Also, go light on the extensions. Mobile devices may not include a full JavaScript implementation (which may limit AJAX capabilities) and may not include Flash at all (for example, iPhone) or may include Flash Lite.

    The rest is up to you.


    Customer surveys are for companies who didn't pay proper attention to begin with.
    bidmi robson
    Greenhorn

    Joined: Sep 12, 2010
    Posts: 16
    David Newton wrote:Are you asking how to write a servlet, or how to write a mobile phone app? Is it a phone app, or just a web page created for phone-sized displays? Or...?

    If this is *your* undergraduate project shouldn't you be telling *us* how you've gone about getting started, then asking specific questions as they arise?

    i am still thinking about how possible it is before going ahead i still have to first submit a proposal on this and it`s when it is given a go-ahead that i can begin this project so i know pretty well what i`m doing by asking for help....so can you confirm if this is possible and the steps i should follow in achieving it so i can add it in my proposals... my project supervisor needs specifics and not beating around the point...please help.
    David Newton
    Author
    Rancher

    Joined: Sep 29, 2008
    Posts: 12617

    Yes, it's possible.

    Your project--you come up with the specifics. If you have *specific* questions, we're more than happy to help, but you must ShowSomeEffort. We're NotACodeMill, and expect people to DoYourOwnHomework. By giving you the steps needed we'd be depriving you of one of the main benefits of school: learning to think and research.
    bidmi robson
    Greenhorn

    Joined: Sep 12, 2010
    Posts: 16
    David Newton wrote:Yes, it's possible.

    Your project--you come up with the specifics. If you have *specific* questions, we're more than happy to help, but you must ShowSomeEffort. We're NotACodeMill, and expect people to DoYourOwnHomework. By giving you the steps needed we'd be depriving you of one of the main benefits of school: learning to think and research.



    well thanks i appreciate that..it`s exactly what i need to hear and i`m encouraged by that.i`ll get back to you.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: servelet application