struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Martín Canaval Sánchez <martin.cana...@gmail.com>
Subject Re: how to set default focus field in <s:form> ?
Date Mon, 10 May 2010 22:07:17 GMT
I would like to know that aswell, so far I have been using javascript with
jquery that is the lib that I use


// somewhere inside the initial function
$("input:text:visible:first").focus();
// or
$("#othercontol").focus();
// if the first control is not a textbox.

On Mon, May 10, 2010 at 15:52, Emi Lu <emilu@encs.concordia.ca> wrote:

> Good afternoon,
>
> Struts1, I use <html:form focus="field_name" to focus a default field.
>
> For *struts2.1.8.1*, may I know the grammar of setting focus value for
> "s:form" please?
>
> <s:form focus="field_name" > does not work.
>
> Thanks a lot!
>
> --
> Lu Ying
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Ing. Luis Martín Canaval Sánchez
Keep it small and simple.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message