Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

link between servlets

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic