Reputation: 4954
I am creating an android application and I want that when user fill up the registration form in my android application then that data should be saved in remote MySQL database.But i want JSP and Servlet for this as middle level. I searched a lot on internet but every tutorial shown on internet are using PHP. I don't want to use PHP at server side. So is there any tutorial or resource for saving android application data to remote MySQL database using JSP and Servlet.
Upvotes: 0
Views: 1685
Reputation: 686
You usually call RESTful services from the Android App. The RESTful services can be written in any language of your choice. Your Android client is one which is communicating with the REST Backend. If you are using ButtonView and on the click of it some update or retrieval are supposed to be performed then REST based services are best. I would recommend this approach.
Upvotes: 1
Reputation: 971
Look at the way servlet is deployed from the below blog :
http://hmkcode.com/java-servlet-send-receive-json-using-jquery-ajax/
Hit the servlet URL in a browser.If u get the JSON response, the same call can be leveraged from the mobile client building the URLconnection and rendered in the app using some Parser at Mobile end. Hope this meets the requirement.
Upvotes: 0