Send/Receive data between JQuery Mobile and server

Hello there,

I have made a mobile app using JQuery mobile which has static data on it. Now I want to go a step futher to have my app connect to db and get and send data from the web app to the server. but I don't know how to do it. I want to use Java technology on the server side with mssql 2008 db. any help will be appreciated. I could not also find any tutorial on the internet with respect to java server side.

Who is Participating?
Scott Fell, EE MVEConnect With a Mentor Developer & EE ModeratorCommented:
>specifically for mobile devices

Can I surf to your jquery mobile site by going to if yes, you are making a traditional website in a mobile format.  You may or may not be loading this into a webview.  If this is the case, you can use the traditional database calls you are used to making on your other sites.

If you are making an android app (assuming because you said java) that is only to be run natively (not a web view), then you will make calls to your db by hitting endpoints to a web service.  You can create the webservice using your own db server.   This means your question is really two fold.  1) How to I create a web service 2) How to I send and receive data making RESTful calls to my web service. 

I have given you a general overview.  It would be good to understand this a little, then perhaps break out your needs to more detailed questions.

If you are just asking about creating the webservice on the server, you can already do this in .NET and don't need to use java.  However, if you want to use java, I know a lot of  people use  If this is what you really want to concentrate on, then we should get this question under the Java topic.  I have not used spring myself, but from what I understand it is pretty involved.

The point of my answer is you don't have to use java on the server just because you may be using android.  You only need java on the NATIVE mobile app.
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Are you making an html5 app that is actually a website in mobile format or are you making an html5 app that will be used as as webview or are you making a true native app?

If the first 2, you can use the data connections you are used to and no special java required.   If you are making a pure native app, then you will need to make a web service for your database and send calls to the endpoints as REST or SOAP.  

This has been answered very nicely
zolfAuthor Commented:
thanks for your comments. I am making an web app using HTML5 specifically for mobile devices.can you please elaborate on this
zolfAuthor Commented:
thanks you so much for explain and clearing my doubts so clearly.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.