aspose file tools*
The moose likes Servlets and the fly likes Pop up the error message (Bit interesting Q ?) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Pop up the error message (Bit interesting Q ?)" Watch "Pop up the error message (Bit interesting Q ?)" New topic
Author

Pop up the error message (Bit interesting Q ?)

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
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


Eat JAVA, Drink JAVA, Sleep Java
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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

 
 
subject: Pop up the error message (Bit interesting Q ?)