Omg ^^

document,getElementById('userId').focus()
        |
        v
document.getElementById('userId').focus();

<html:text property="userId" /> + styleId="userId"
-> <html:text property="userId" styleId="userId" />

Greetings


-----Ursprüngliche Nachricht-----
Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Cenk
Gesendet: Montag, 27. August 2007 13:52
An: user@struts.apache.org
Betreff: How to set focus to html:text?

Hi,

The previous posting was about HTML only, but this one is struts, and if 
anybody can help me, i would be so grateful.

thanks

...

<body onload="document,getElementById('userId').focus()">
<html:errors/>

     <html:form action="/Login">
        <table border="0">
           <tr>
              <td>Login:</td>
              <td><html:text property="userId" /></td>
          </tr>


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

Autohaus Heisel GmbH - Handwerkstraße 2 - 66663 Merzig 
Sitz Merzig - Amtsgericht Saarbrücken HRB 63899
Geschäftsführer: Gerd Heisel

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

Reply via email to