File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Validator " Watch "Validator " New topic


Janice Guevara

Joined: Aug 07, 2006
Posts: 14

How can I set the focus on a form field after it has been validated??? (assuming there is an error).I'm working with struts.

Any ideas?

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The following code would work. "onlode" below should be "onload", but I had to substitute to get around the JavaRanch Filter.

[ October 19, 2006: Message edited by: Merrill Higginson ]

Consultant, Sima Solutions
I agree. Here's the link:
subject: Validator
It's not a secret anymore!