This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes jsp and javascript!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "jsp and javascript!!" Watch "jsp and javascript!!" New topic
Author

jsp and javascript!!

vivek sivakumar
Ranch Hand

Joined: Aug 09, 2001
Posts: 187
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!


SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Heath Lilley
Ranch Hand

Joined: Jan 09, 2001
Posts: 72
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp and javascript!!
 
Similar Threads
Weblogic Web Application Security
2 CLARIFICATIONS
How to get a Username on the next page
code help!!
Connecting to Cloudscape