struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dynamicd <>
Subject Re: Struts 2 Buttons
Date Tue, 02 Sep 2008 22:41:23 GMT

I am not sure if this is some thing you looking for

<s:form id="configureform" name="configureform">
SOME table here or some fields

<s:url id="configure" value="Configure.action" />
<s:a href="%{configure}" showLoadingText="false" id="configure"
cssClass="anchors" theme="ajax" targets="div2"

I like using anchors.. you can use submit as well.
important things here are the formId which shud be the same as in the form
showloadingText =false by default its true and there is a problem in IE
href should be the same as in the url tag.
Hope this helps. 

Roger Varley wrote:
> Is it possible to define a button (<s:input> in such a way that, instead
> of of 
> calling a method in the action defined in the <s:form> tag, it calls a 
> completely different action.method. Is it possible to just add a button
> that 
> calls an action on the jsp.
> Alternatively, I know I can style a link to look like a button with css,
> but 
> I'd rather have a button if at all possible
> Regards 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message