JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1072 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 Ekk4IG
Related Questions
JSP : What is the differecnce between JspWriter and PrintWriter?

What is the differecnce between JspWriter and PrintWriter?

JspWriter is buffered but PrintWriter is not.
Category: JSP Date: 11/9/2010 2:11:59 AM
JSP : How can I invoke a JSP error page from a servlet?

How can I invoke a JSP error page from a servlet?

By creating a request dispatcher for the JSP error page, and pass the exception object as a javax.se....
Category: JSP Date: 11/9/2010 1:39:57 AM
JSP : Why doesn't the focus feature on the <html:form> tag work in every circumstance?

Why doesn't the focus feature on the tag work in every circumstance?

Because there is some disagreement between the various browsers, and different versions of the same ....
Category: JSP Date: 11/8/2010 11:50:00 PM
JSP : How will you communicate from an applet to servlet?

How will you communicate from an applet to servlet?

There are three ways to communicate from an applet to servlet and they are: HTTP Communication (Text....
Category: JSP Date: 11/8/2010 11:17:58 PM
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