Nope yo can't! I guess you want your JSP code to do some "focusing"!
I would suggest dynamically generate javascript code which focuses needed field! When the page will be rendered your newly generated code wll execute on client side and focus! The trick is that server side code can't interact with client side code and when client side code starts working that means that server side code allready finished it's work! _______________________________________________________ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation. Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267 Hertenstein Alain <[EMAIL PROTECTED]> 09/04/2003 10:47 Please respond to "Tomcat Users List" To: "'Tomcat Users List'" <[EMAIL PROTECTED]> cc: Subject: RE : setting the field focus with a servlet Hi Luke, AFAIK, it's not possible to interact on the client side using Java (unless using Applets). You need JavaScript to fire events on the client browser, like focus() on a text field or the like. However, for form content check you can use your Servlet / JSP to retrieve all request parameters, check them and send your response accordingly. I don't know if I've answered your question. Alain -----Message d'origine----- De : Luke Vanderfluit [mailto:[EMAIL PROTECTED] Envoyé : mercredi, 3. septembre 2003 21:28 À : Tomcat Users List Objet : setting the field focus with a servlet Hi, I am working on a servlet that checks a form content without using javascript. Does anyone know if there is a way to set the focus to a particular field using java? thanks for any help :-) kind regards, Luke -- ==================================== "when my computer smiles, I'm happy" ===============================.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282 \~/` --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]