On 04 September 2003, Luke Vanderfluit said:
> 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?

I think you need to learn how HTML forms work and interact with the
browser.  If you want to control the browser at this level, you need to
do it with JavaScript.  In general, Java code (servlets, JSPs, whatever)
run on your web server, not in the user's browser.  (Of course that's
not the case if you're using applets, but the only thing that sucks more
than trying to get JavaScript working portably across browsers is trying
to get Java applets working portably across browsers.  ;-( )

        Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to