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

focus support

danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
Do html tags support "focus" demand?


Nick Williamson
Ranch Hand

Joined: Jan 06, 2007
Posts: 73
yes, on the html:form tag there is an attribute called focus you can set it to a property on the form:

example your ActionForm has a property on it called name

in that example the cursor will be put on the "name" text filed when the page loads.
I agree. Here's the link:
subject: focus support
It's not a secret anymore!