JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1122 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 Leq89p
Related Questions
JSP : Why is ActionForm a base class rather than an interface?

Why is ActionForm a base class rather than an interface?

The MVC design pattern is very simple to understand but much more difficult to live with. You just n....
Category: JSP Date: 11/9/2010 8:32:59 AM
JSP : What are the scopes available in JSP?

What are the scopes available in JSP?

page, request, session, application
Category: JSP Date: 11/9/2010 6:55:56 AM
JSP : What are the JSP scripting elements?

What are the JSP scripting elements?

There are three scripting language elements: declarations, scriptlets and expressions.
Category: JSP Date: 11/9/2010 6:22:56 AM
JSP : What is client side refresh?

What is client side refresh?

It is the standard HTTP protocols ways of refreshing the page, and is supported by all browsers. <....
Category: JSP Date: 11/9/2010 4:33:57 AM
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