JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1154 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

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

Enter the text as shown in the image G7IJ4O
Related Questions
JSP : What is the using of “super.init (config)” in servlets ?

What is the using of “super.init (config)” in servlets ?

To access the ServletConfig from the servlet.
Category: JSP Date: 11/8/2010 10:12:56 PM
JSP : What is the container?

What is the container?

container is a runtime support of a system-level entity and provides components with services such a....
Category: JSP Date: 11/8/2010 8:22:59 PM
JSP : How setting a cookie?

How setting a cookie?

Cookie c = new Cookie("name","value"); response.addCookie(c);
Category: JSP Date: 11/8/2010 7:50:57 PM
JSP : How can a servlet refresh automatically?

How can a servlet refresh automatically?

By using client-side refresh or server push.
Category: JSP Date: 11/8/2010 7:17:57 PM
JSP : What is a servlet filter?

What is a servlet filter?

Servlet filters are pluggable web components that used to implement pre-processing and post-processi....
Category: JSP Date: 11/8/2010 6:00:59 PM