File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pop up the error message (Bit interesting Q ?)

 
Sanjay pts
Ranch Hand
Posts: 357
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • 0
  • Mark post as helpful
  • send pies
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic