is it possible to insert data from other web site? - java

My English's suck, please understand it.
I am a beginner in programming field.
What i am trying to make these day is making an Accommodation Booking website.
Here's my detailed idea,
I will make Booking System in my own server as well as database.
and then provide other accommodation website with some XMLs or like, so that they can see their own reservation information stored in my database on their website. I think this is possible.
but my goal is not only getting information from my own database, but also inserting a booking data into my database from their website without giving them my database access id/passwd.
I have completely no idea for this.,
can Anybody tell me which i need to know or learn for this, thank you good day.

Ideally, the other site would have a public API you could use to obtain its data.
Otherwise, you could use a screen scraping technique with cURL. Here's an example: http://devtrench.com/posts/screen-scrape-with-php-curl

Related

sending data from android to web without being able to look it up

I am making an android app for a survey. The answers are saved in a file, and that file should be sent to the web, so we can analyse the data. I am searching for a way to put the data on the web, in such a way that only I can access it.
I've tried google doc's, but it seems to me that if too many people upload their data at the same time, some data might get overwritten.
I've also tried dropbox, but the problem is the authentication step. Since every person would have emailadres and password, everyone would have access to all data, which should not be possible (unless there is a way to authenticate in the code, but I haven't found anything on that).
Does anyone have an idea what I can do? Thank you!
You shouldn't use a Google Document directly. With a lot of traffic you'll definitely get overwritten data. You're also vulnerable to someone messing with the data since you'll need the document to be public so people can edit it.
What you want to do is create a Google Form and then have your application POST the data to that. Google will handle making sure that no data is overwritten for you.

Creating a simple informal CRM tool

I was wondering if anyone could give me any advice to this project I have been given for the next week and a half.
The goal is to make a simple, informal windows CRM application with database to record customer call times, names, company name, follow up time, etc.
I was planning to create it in Java, do I need to create an installer/installation exe file/build using maven? Or would MS .Net be a better application to create it?
I need a search functionality which will search all entries to the database for key word, then pull back the information, i.e. if Joe rang with an enquiry about his order, assistant could search for "Joe" and pull back all rows with Joe in it, and assistant can see what the order was from the data displayed.
The System also needs to have a username and password to log in. For the meantime, saving the database locally is ok, but then maybe branch onto saving the database to the public drive then have different logins for staff members.
Do you think this kind of project would be feasible in the time frame, or any advice for my approach for development/structure of database?
Can this all be done simpler with MS Access?
Thanks for any help!

Embeded tool in web app to design form and connect to application data

what kind of tool or approach would you suggest for the following scenario:
JSP/Servlets web application
need to design forms and connect this forms to actual data from the db (for example select form fields from a specific list of fields) while the web app is running
save and use the above forms to store data to DB
any approach or tool indication is welcome
The basic idea would be:
h have the possibility to design a form from the application and then have user use it to store data, for example the administrator logs in, creates/designs a from with certain fields (connecting those fields to actual data from the db), stores that form, publishes it to be used by users. The user logs in, selects the just-published form, inputs data, saves to db
EDIT: i am receiving downvotes, while it is ok, as i am mainly looking for advice, please do state what makes this question so unbearably bad that you need to down-vote, without maybe giving a hint to what i should change. It seems to me that the question relates to a specific problem i am facing, while trying to build a solution.
EDIT 2: i need to design the form while the application is running, and use the form again from the app. It has nothing to do with coding forms in a JSP page or connection to databases or things like that.

How to grab data from the online database?

By any chance, is there anyone who can help me? As currently I am doing my major project, and also a beginner in android and java. I am doing the login function for my project. I took
reference from here. However, one problem that I am facing now is I do not know how to grab the details (name and email column) from the database and display out these two information. Is there any guide on how to grab the information and display it out after the user have log in? Thank you very much.
1. Try using SQLite DataBase, which ships with Android.
2. Its simply a file with NO DATABASE SERVER.
3. This DB can be as small in size as 250KB.
For a quick and easy example see here:
http://android-er.blogspot.in/2011/06/simple-example-using-androids-sqlite_02.html
For understanding the queries look here:
http://mobile.tutsplus.com/tutorials/android/android-sqlite/
http://www.vogella.com/articles/AndroidSQLite/article.html

How to access online mysql database in android?

I have created an online database about the restaurants and I need to access this database through my android application, so that I can display the data to the users after filtering. My application does not need to update the database, but my problem is how to connect to my online mysql database and provide it to the users? I have looked on many suggestions on this site as well as on others, and I just found I have to use JSON parser while accessing but do not how to do it.
The best solution is provide a public API, managed for example with PHP, which delivers your database data filtered and displayed as your Android application needs.
This link might help you . http://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/
Just get an understanding of JSON parsers and how it can be used in android for retrieving data from database on server... you can write webservices in php..
You need to provide a server side solution that the Android application can speak to. PHP scripts are a good way to go, that can directly interface with the MySQL database, and return results to the device.
You can then be creative with the PHP script, by sorting the results etc, and providing a more comprehensive solution by taking away some of the processing from the Android device, and doing it server side where battery life isn't as much of a problem.
You simply need to implement web service calls on the Android device, simple GET/POST requests over HTTP suffice depending on what you intend to do. Have a look into REST APIs for guidelines on how to implement properly.
You can easily add a PHP script to the same server as the MySQL database for this

Categories

Resources