You can add a html code like
     <a name="gotohere"></a>
at the point where the field were added and call the jsp as
"jspname.jsp#gotohere".
This may not focus exactly to the same place, but this way you can choose a
place to focus on instead of the top of the page, probably enough for the
result to be ok.

 []'s,

 Rodrigo.

> -----Mensagem original-----
> De: Mihir Sahu [mailto:[EMAIL PROTECTED]]
> Enviada em: Sexta-feira, 23 de Março de 2001 16:17
> Para: [EMAIL PROTECTED]
> Assunto: focusing back of a page
>
>
> Hi,
>     I have a focus problem in which I add dynamically text
> fields(each time I  add
> button is clicked, an extra field is added) in a form using
> JSP.  I call  a
> servlet(I do not use javascript to do it), which in turn a
> uses other objects to
> add it and finally,  I call the same JSP to display the form
> with the existing data
> and the extra text field.  The problem is that, when the add
> button is clicked, it
> goes to the top of the page.  The user want it to stay at the
> same place.  Is there
> anyway to refocusing back to the same place.  Any help is
> really appreciated.
> Regards
> Mihir
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to