JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 729 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 BBBkvM
Related Questions
JSP : What is the difference between ServletContext and ServletConfig?

What is the difference between ServletContext and ServletConfig?

The ServletContext gives information about the container, provides information to servlets regarding....
Category: JSP Date: 11/3/2010 5:10:57 AM
JSP : What is use of parseQueryString?

What is use of parseQueryString?

It parses a query string and builds a Hashtable of key-value pairs, where the values are arrays of s....
Category: JSP Date: 11/3/2010 3:21:58 AM
JSP : What is servlet exception?

What is servlet exception?

It indicates that there is an exception occurred in the servlet.
Category: JSP Date: 11/3/2010 3:20:59 AM
JSP : How do you pass an init parameter to a JSP?

How do you pass an init parameter to a JSP?

By configuring the DD for passing init parameter to a JSP and that as follows. <servlet> ....
Category: JSP Date: 11/3/2010 2:48:58 AM
JSP : What the code that pass an InitParameter to a JSP?

What the code that pass an InitParameter to a JSP?

<%@ page import="java.util.*" %>
Category: JSP Date: 11/3/2010 12:59:00 AM
 
Find Best Deals @