JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 955 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 h54bkv
Related Questions
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
JSP : Can Runnable interface be implemented from within the servlet?

Can Runnable interface be implemented from within the servlet?

Yes
Category: JSP Date: 11/2/2010 10:05:59 PM
JSP : How can you print the stack trace of an exception from a  JSP page?

How can you print the stack trace of an exception from a  JSP page?

By creating an object of PrintWriter we can print the stack trace in JSP page. Eg: PrintWriter pw = ....
Category: JSP Date: 11/2/2010 9:32:59 PM
JSP : Is inter servlet communication important?

Is inter servlet communication important?

Yes, and that because of : 1: Direct servlet manipulation allows to gain access to the other curren....
Category: JSP Date: 11/2/2010 8:26:57 PM
JSP : What is a Java Bean?

What is a Java Bean?

A Java Bean is a software component that has been designed to be reusable in a variety of different ....
Category: JSP Date: 11/2/2010 6:05:58 PM