Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Applets and the fly likes pls help me out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "pls help me out" Watch "pls help me out" New topic

pls help me out

amanda wu

Joined: Mar 16, 2003
Posts: 25
i'm designing a software using java applet,
the first page should be the authentication one: username and password, if type wrong, then keep this page, if right , this page disappear and another page display, the 2nd page is the main one consists many things.
How to avoid the 2nd page being displayed directly by entering the url in the IE?
if can keep both of them in one applet,
what to put in init()?
if must keep as 2 individual applets,
how to avoid the problem as above?
many many thanks.
Dermot Curley
Ranch Hand

Joined: Jul 03, 2002
Posts: 43
How about the following method:
void showDocument(URL url, String target)
It is part of the AppletContext class, this might be what you are looking for.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Hi, seek help

Welcome to JavaRanch! Please adjust your display name to meet the JavaRanch Naming Policy.
You can change it here.


"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: pls help me out
It's not a secret anymore!