wood burning stoves*
The moose likes Java in General and the fly likes Accessing  the DB and sending a file server file system  via the web Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Accessing  the DB and sending a file server file system  via the web" Watch "Accessing  the DB and sending a file server file system  via the web" New topic
Author

Accessing the DB and sending a file server file system via the web

William Reilly
Greenhorn

Joined: Jan 08, 2002
Posts: 15
Hi there,
Have been given a website project with requirements I haven�t had to do before.I have to enter,query and update certain records on a small database that servers a small website via a webpage. Another requirement is send image files such and gifs and jpegs with the updates and new records to the servers file system which will then be accessed directly by the webserver. Haven't used Java in ages but this is what I came up with.
1)Use an applet to talk to java server object on the webserver which will then update the database.
2)Send the data(text) and queries via sockets.
Does this seem ok or is there another way?
3)How can I send an image file via the web?
4)Just to confirm, does IE support applets? eg jdk1.2 doesn't have to installed on the clients machine?
Will be putting the webserver on linux and using PHP as a script, don't think this has any bearing but thought I'd mention it.
Any help on the above and/or suggestions on good reading material would be brilliant.
Thanks
Will Reilly
p.s.
Due to the small size of the website J2ee, Serverts and Jsps technologies are not really an economic option.
Jon Strayer
Ranch Hand

Joined: Dec 04, 2002
Posts: 133
Originally posted by William Reilly:
Hi there,
Have been given a website project with requirements I haven�t had to do before.I have to enter,query and update certain records on a small database that servers a small website via a webpage. Another requirement is send image files such and gifs and jpegs with the updates and new records to the servers file system which will then be accessed directly by the webserver. Haven't used Java in ages but this is what I came up with.
1)Use an applet to talk to java server object on the webserver which will then update the database.
2)Send the data(text) and queries via sockets.
Does this seem ok or is there another way?

This sounds like a job for a servlet. A simple web page posts the querry to the servlet, the servlet querries the database and spits the data back to the browser. I'd use a JSB for the output.

3)How can I send an image file via the web?


How about FTP?

p.s.
Due to the small size of the website J2ee, Serverts and Jsps technologies are not really an economic option.

Tomcat is free.
[ February 21, 2003: Message edited by: Jon Strayer ]

Jon
William Reilly
Greenhorn

Joined: Jan 08, 2002
Posts: 15
Ftp is what I have used in the past to send files to the webserver but is there no way for a client side application to select a file and send it to the webserver with out client interaction i.e. the client selects a file and the client side application sends it to the webservers image directory.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing the DB and sending a file server file system via the web