File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes link between servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "link between servlets" Watch "link between servlets" New topic

link between servlets

Archu Joshi

Joined: Nov 12, 2000
Posts: 3
hi everybody
i have written a servlet that takes username & password from HTML form & checks the values with values stored in a database.
if valid values then Welcome message comes & ihave to click on a link that shows next screen. if values are not valid Login failed message comes.
but i dont want to click on any link to see the next screen it should come directly.
what is the solution.

Frank Carver

Joined: Jan 07, 1999
Posts: 6920
What you need is the "meta refresh" tag understood by most browsers. For example:
<meta http-equiv='refresh' content='10; /welcome.html'>
<body><h2>Logged in OK. Please Wait</h2>
Will show the "Logged in OK" message for 10 seconds, then go to to the /welcome.html page.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: link between servlets
It's not a secret anymore!