• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

New to Java (with a few questions)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I've been wanting to learn java for a while now but never have taken the time to learn until now.

I went to the local library and checked out the book "The Java Bible" by Aaron E. Walsh. It was a lot of help and I learned a lot of usful information.
One of the things that (might have been but I don't recall) was not included was applications that interact with a webpage, Like submitting forums and logging into websites. I know the basics and I've writen about 10 small programs that just to experiment with some of java's capabilities and what nots.
I am sure that I will find some information about doing this when I search for it on the web, I was just wondering if anyone knew of a particular website that would help me learn about this.
Thanks in adv.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the Java Tutorial. Lots of good info for the beginner. For example, the chapter on applets, the java applications that run within a web browser.
 
Brian W Heazeltine
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
eh, from what I understood in the book applets don't let you communicate with another website. ...
Applet is on www.myapplet.com but I want to connect to www.myforum.com
Might have just misread it but I'll take a closer look.
 
Joe Ess
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I misinterpreted what you are trying to do. Applications can freely access web sites via the java.net.URL and java.net.URLConnection classes. Applets run inside a "sandbox" which prevents them from gaining access to the user's computer and connecting to any server other than the one they were downloaded from. You can digitally sign an applet and it will ask the user for permission to perform usually prevented operations, like accessing another server.
Here's a tutorial on signing an applet.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Brian!
Perhaps you're wanting to learn server side Java programming - technologies like Servlets and JSPs, which allow you to dynamically generate web content, such as what happens when I submit this post.
The third section of assignments in The JavaRanch Cattle Drive provides a nice and easy introduction to the learning Servlets. (That's how I learned it.)
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic