Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-20-2008, 08:22 PM
Member
 
Join Date: Jul 2008
Posts: 2
ownlol is on a distinguished road
Java Applet HTML
hi my name is Brandon, new user to this forum and well to programming in java lol.

My friend wants me to build him a website, and I don't know the best way of doing it. So I chose Java seeing that is the best language I know.

So here's the thing, the website will have a the user to login with a name/password. This applet will then go to a txt file to validate the name/pass. If everything is correct the user will then be allowed to go in and complete a form (listing their address etc.) This form will be saved on a server under the user's name.

Is this do-able using Java applets?

any help would be appreciated
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-20-2008, 10:22 PM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
Partly. The applet can get the data from the user, read a file on the server and use that info to validate the user. However, there wouldn't be any security. If someone could get the name of the file being read by the applet, they could read the file directly.
To be secure you'd need code on the server to do the verify.

The applet could gather the info to be saved on the server, but the applet can NOT write on the server. Again you'll need server side code to save the info.

What server are you using? Tomcat is a free server that provides support for servlets.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-21-2008, 12:34 AM
Member
 
Join Date: Jul 2008
Posts: 2
ownlol is on a distinguished road
well my friend hasn't decided which server he wants to use. But i will check out Tomcat.

So your saying the applet can read from the file on the server, but can't write. Could I use Tomcat to write info taken from the applet on the server?

Last edited by ownlol : 07-21-2008 at 12:44 AM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-21-2008, 01:50 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,223
Norm is on a distinguished road
Yes, the applet can only read from the server, just the same as a browser does.
Tomcat is a server that would execute servlet code that you could call from the applet.
Another way to have data written on a server, is to have a cgi program, such as Perl that is called from the applet to write on the server.

For this project you'll need to do some research on HTTP protocol and servers.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 07-21-2008, 04:59 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 783
Nicholas Jordan is on a distinguished road
basically, yes
Quote:
Originally Posted by ownlol View Post
well my friend hasn't decided which server he wants to use. But i will check out Tomcat.
Yes, do. Probably end up using NetBeans. Read up for now. Do not hire the first server you find. There is a great variance in the quality of servers actually available. If you have an internet connection, often you can use that as an internets server. It just gets deeper and deeper like Alice in Wonderland, but you can always find free servers in a matter of minutes or hours if you know what to look for and how to look for it.

Read Complete Idiot's Guide to ..... as the first book, then go to O'Reilly books to start your first real efforts. I have found Elsevier, Addison-Wesley Charles-River Media and John-Wiley to be the players that plan to stay. You can get any title at the library, just becuase it is not on the shelf does not be a problem.

Quote:
Originally Posted by ownlol View Post
So your saying the applet can read from the file on the server, but can't write. Could I use Tomcat to write info taken from the applet on the server?
Tomcat can talk to the applet all it wants to, writing files is another matter. Consider the html written to the browser as a file.

You can begin that today, write an html file and open it right there. HTML is safe and easy place to start. The code you write today can be used later when,.....

I still use the first html page I ever wrote. There is a free webserver right in the sample documentation that comes with the Java Development Kit. It will run right there on your computer.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet to HTML Driving me bonkers proud2bhaole Java Applets 5 05-31-2008 02:19 AM
Chat Applet in HTML Flynazn Java Applets 4 05-27-2008 11:26 AM
How to view applet from html page. jwzumwalt Java Applets 2 11-24-2007 06:21 AM
How to pass an html variable as an applet value fred Java Applets 1 08-06-2007 05:28 AM
Create a Applet in the page HTML Daniel Java Applets 2 07-04-2007 09:52 AM


All times are GMT +3. The time now is 07:38 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org