Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp and javascript!!  RSS feed

 
vivek sivakumar
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have 2 beans which check the user name and pass word , is it possible to give a window.alert() message if the authentication fails in the bean like if user enters a false pass word!!
give me ur suggestions pls!
 
Heath Lilley
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Short answer is yes.
Long answer...
1. Redirect the failed login back to the login.jsp page...
2. Setup a js function that is written only when the error is present, something like...

3. Then do this with the body tag.

This worked for me.
good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!