JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 857 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 Kz1O26
Related Questions
JSP : What is the difference between an application server and a web server?

What is the difference between an application server and a web server?

Application server provides a lot of services like security, transaction , scalability. Application ....
Category: JSP Date: 11/6/2010 11:39:59 PM
JSP : How can you append the session ID for each and every link that is part of your servlet response?

How can you append the session ID for each and every link that is part of your servlet response?

By using the methods response.encodeURL() and response.encodeRedirectURL()
Category: JSP Date: 11/6/2010 11:07:57 PM
JSP : What is a Declaration?

What is a Declaration?

It is the process of declaration variables and/or methods for use later in the JSP source file and i....
Category: JSP Date: 11/6/2010 10:35:56 PM
JSP : Write the code that used for communication between JSP page and an EJB Session Bean

Write the code that used for communication between JSP page and an EJB Session Bean

<%@ page import="javax.naming.*, javax.rmi.PortableRemoteObject, foo.AccountHome, foo.Accoun....
Category: JSP Date: 11/6/2010 9:19:00 PM
JSP : What happens if we write a constructor for servlet ?

What happens if we write a constructor for servlet ?

The container will always call the default constructor only. If default constructor is not present ,....
Category: JSP Date: 11/6/2010 7:40:56 PM