JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 786 Page Views: 

Why doesn't the focus feature on the <html:form> tag work in every circumstance?



Posted By: Avi Date: 8 November 2010 11:50:00 PM
 Answer:

Because there is some disagreement between the various browsers, and different versions of the same browser, as to how the focus can be set. The tag provides a quick and easy JavaScript that will set the focus on a form for most versions of most browsers. If this feature doesn't work for you, then you should set the focus using your own JavaScript. The focus feature is a convenient "value-add" -- not a core requirement of the tag. If you do come up with a JavaScript that provides the final solution to this project, please post your patch to this Bugzilla ticket.


Posted By: avibtech


Date: 8 November 2010 11:50:00 PM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image wO3y2e
Related Questions
JSP : Should objects stored in a HTTP Session be serializable?

Should objects stored in a HTTP Session be serializable?

No, the objects need not to be serializable and we can store any type of objects in session.
Category: JSP Date: 11/5/2010 11:51:59 PM
JSP :  What is Servlet chaining?

What is Servlet chaining?

Servlet chaining is a technique in which two or more servlets can cooperate in servicing a single re....
Category: JSP Date: 11/5/2010 8:57:58 PM
JSP :  What are the different types of ServletEngines?

 What are the different types of ServletEngines?

1: Standalone ServletEngine is a server that includes built-in support for servlets. 2: Add-on Serv....
Category: JSP Date: 11/5/2010 8:24:58 PM
JSP : Can destroy() method be called on servlets from service method ?
JSP : What is a WAR file?

What is a WAR file?

WAR(Web Archive) is a compressed version of web application and used to deploy the web application.
Category: JSP Date: 11/5/2010 3:41:59 PM