• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pop up the error message (Bit interesting Q ?)

 
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I have one html form in which i have two fileds,one username and another is password and one submit button.
After entering this value ,i press submit button.On press of submit button i call one servlets,in servlet programme i have a databse connectivity,as well as accept value from HTML form using request.getParameter() mehtods and compare with my database table(In database table i have stored username and password).
Now my problem is if enter username and password not match with anydata into that database table, i redirect to same
html page wit error message.
But i want to display that message in the form of pop-up window(same as JavaScript Alert message).Can anybody suggest me or send me code or solution for this.
Thanking You
Sanjay Patel
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sanjay pts:
But i want to display that message in the form of pop-up window(same as JavaScript Alert message).Can anybody suggest me or send me code or solution for this.


This question has no relevance to servlets or JSPs -- it is a HTML/JavaScript question. Anyway, what you would do is generate a page with, as you say, a JavaScript alert that executes when the page loads (onLoad? Hmmm, check a manual).
- Peter

 
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic