jQuery in Action, 3rd edition
The moose likes Applets and the fly likes Call a Webpage from a applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Call a Webpage from a applet" Watch "Call a Webpage from a applet" New topic

Call a Webpage from a applet

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,

I have a applet. Actually it is a login page. When the user clicks the buttons it takes the text on the two text fields (username and password) and send then to a servlet

Servlet checks with the database if they are correct send back yes. otherwise no.

If the answer is no an message will come up wrong username or pass word

If the answer is yes the user must be directed to a new page

So how can I do this?
When directing it must not be a new IE same IE but a new page

And the address bar must not change two as I am passing only the user name to the new page
Thank You
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
In an applet you can use the showDocument method to redirect to another HTML page based on the servlets response.
vidhyasagar reddy
Ranch Hand

Joined: Jul 05, 2005
Posts: 40
just read the docs for servlet applet communication

and u u can have access to the applet fields by using the AppletContext

and check availability of those fields by using the servlet

and by using the script u acan do further processing
I agree. Here's the link: http://aspose.com/file-tools
subject: Call a Webpage from a applet
jQuery in Action, 3rd edition