This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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
Author

focus support

danny liu
Ranch Hand

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

Thanks.

Dan
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: focus support
 
It's not a secret anymore!