You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ben Taylor <be...@gmail.com> on 2005/03/20 12:50:25 UTC

Struts and Security

Hi,

Does anyone know if there is a way to have the login page for
container security submit to an action?

At the moment it's embedded within a tile so when I sumbit the form it
goes looking for some page hidden behind the web-inf folder.

Any help appreciated.

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: submit with the from the keyboard ??

Posted by Jeff Beal <jb...@gmail.com>.
Try <html:submit/> instead of <html:button/>. See
http://www.w3.org/TR/html401/interact/forms.html#buttons for a quick
description of the difference between <input type='submit'> and <input
type='button'>.  (While you're there, read the whole page.  It's
filled with good information on HTML form submission.)

-- Jeff


On Mon, 21 Mar 2005 14:35:31 +0800, Yen <hy...@leadingside.com> wrote:
> When I hit on the <enter> key, it wont submit the form unless I use the
> mouse to click on the button. I tried with both method, it doesnt work.
> Unless I put both codes together, and it will work..
> any idea?
> 
> Method 1
> <input type="text" name="fullName" value="Enter Name Here"
> onFocus="javascript:clickme();"/>
> <input type="button" class="btn2" value="<bean:message
> key="common.button.search"/>"
> onclick="javascript:doSubmitForm('showList')"/>
> 
> Method 2
>  <html:text property="fullName" value="Enter Name Here"
> onFocus="javascript:clickme();"/>
> <html:button property="action"
> onclick="javascript:doSubmitForm('showList1')">
>   <bean:message key="common.button.search"/>
> </html:button>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


submit with the from the keyboard ??

Posted by Yen <hy...@leadingside.com>.
When I hit on the <enter> key, it wont submit the form unless I use the 
mouse to click on the button. I tried with both method, it doesnt work. 
Unless I put both codes together, and it will work..
any idea?

Method 1
<input type="text" name="fullName" value="Enter Name Here" 
onFocus="javascript:clickme();"/>
<input type="button" class="btn2" value="<bean:message 
key="common.button.search"/>" 
onclick="javascript:doSubmitForm('showList')"/>

Method 2
 <html:text property="fullName" value="Enter Name Here" 
onFocus="javascript:clickme();"/>
<html:button property="action" 
onclick="javascript:doSubmitForm('showList1')">
  <bean:message key="common.button.search"/>
</html:button>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org