jQuery in Action, 2nd edition*
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
It is sorta covered in the JavaRanch Style Guide.
subject: Validator
Similar Threads
Is return message depiction valid UML notations ?
NoClassDefFoundError - ValidateEventListener
SCJA Certification expiration ?
use case