JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 852 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 PqcotK
Related Questions
JSP : What is the life cycle of servlet?

What is the life cycle of servlet?

1: the server loads and initializes the servlet by calling the init method. 2: This init() method ....
Category: JSP Date: 11/2/2010 5:32:56 PM
JSP : What are context initialization parameters?

What are context initialization parameters?

Context initialization parameters are specified by the <context-param> in the web.xml file and....
Category: JSP Date: 11/2/2010 4:59:56 PM
JSP : How can we import a Java package in a JSP page?

How can we import a Java package in a JSP page?

Following page directive is used to import Java package in a JSP page: &lt;%@ page import="....
Category: JSP Date: 10/30/2009 6:01:00 AM
JSP : How can I implement a thread-safe JSP page?

How can I implement a thread-safe JSP page?

You can make your JSP page thread-safe by having them implement the SingleThreadModel interface. Thi....
Category: JSP Date: 10/30/2009 5:54:43 AM
JSP : What are the life-cycle methods of JSP?

What are the life-cycle methods of JSP?

JSP page is processed into a servlet class which implements the HttpJspPage interface of the javax.s....
Category: JSP Date: 9/17/2009 6:38:31 AM