I think that if you use the <html:form> tag, Struts will always interpret it
as an action.
If it is just for the focus attribute, you can implement your own javascript
function to place the focus on the element you want:

<form name="logonForm" action="j_security_check">
Username: <input type="text" name="j_username"><br>
Password: <input type="password" name='j_password"><br>
<input type="submit">
</form>
<script language="JavaScript" type="text/javascript">
  <!--
    document.forms["logonForm"].elements["j_username"].focus();
  // -->
</script>

Hope it helps
Patrice

----- Original Message -----
From: "Boris Folgmann" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 18, 2002 11:41 AM
Subject: Re: tomcat's container based authentication and struts


> Max Cooper wrote:
> > Just write out a regular HTML form:
> >
> > <form action="j_security_check">
> > Username: <input type="text" name="j_username"><br>
> > Password: <input type="password" name='j_password"><br>
> > <input type="submit">
> > </form>
> >
> > -Max
>
> This works, but I wanted to use e.g. the focus attribute of struts'
> <html:form>. Any idea? Is it a bug in struts that my action is changed
from
> j_security_check to /j_security_check.do?
>
> cu,
> boris
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to