JSP Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 1026 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 ytX51W
Related Questions
JSP : How can the output of JSP or Servlet pages be prevented from being cached by the browser?

How can the output of JSP or Servlet pages be prevented from being cached by the browser?

We set the HTTP header attributes the following values: <% response.setHeader("Cache-Control....
Category: JSP Date: 11/4/2010 5:09:57 PM
JSP : Can you stop JSP execution in the middle of processing a request?

Can you stop JSP execution in the middle of processing a request?

Yes, by using the return statement to stop the processing of JSP. Where JSP is compiled to servlet a....
Category: JSP Date: 11/4/2010 2:47:57 PM
JSP : What is the difference between ServletContext and PageContext?

What is the difference between ServletContext and PageContext?

ServletContext gives the information about the container and PageContext gives the information about....
Category: JSP Date: 11/4/2010 2:14:57 PM
JSP : What is the difference between GET and POST?

What is the difference between GET and POST?

In GET data is empedded in one URL, like a hyperlink. query length is limited to 255 characters, not....
Category: JSP Date: 11/4/2010 1:42:56 PM
JSP : What is a Session Id?

What is a Session Id?

It is a unique id assigned by the server to the user when a user starts a session.
Category: JSP Date: 11/4/2010 11:53:58 AM