• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pls help me out

 
amanda wu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, seek help

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

Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic