File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Call a Webpage from a applet" Watch "Call a Webpage from a applet" New topic
Author

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
Marshal

Joined: Mar 22, 2005
Posts: 42359
    
  64
In an applet you can use the showDocument method to redirect to another HTML page based on the servlets response.


Ping & DNS - my free Android networking tools app
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
 
jQuery in Action, 2nd edition
 
subject: Call a Webpage from a applet