PEGASUS84 wrote:
> good evening,
> in my project i've to create a form with two buttons wich make two different
> process:
> i try this method:
> <s:form id="configureform" name="configureform"> 
> SOME table here or some fields 
> </s:form> 
>
> <s:url id="configure" value="Configure.action" /> 
> <s:a href="%{configure}" showLoadingText="false" id="configure"
> formId="configureform">Cancel</s:a> 
>
>
> but it doesn't work.
>
>   

    well, lacking a clear definition of what "it doesn't work" might
mean, i can make the following suggestions:

<div id="targetdiv">Initial contents</div>
<s:form id="configform">
    [fields...]
</s:form>
<s:url id="configure" action="Configure.action" />
<s:a href="%{#configure}" theme="ajax" showLoadingText="false"
formId="configform" targets="targetdiv">Configure</s:a>

    note in particular the following:

1) the presence of a div to capture the result of the Configure action.
2) the use of the "action" attribute in the <s:url> tag, rather than the
"value" attribute.
3) the presence of the pound sign in the value of the "href" attribute
of the <s:a> tag
4) the presence of the 'theme="ajax"' attribute and value in the <s:a> tag
5) the presence of the 'targets="targetdiv"' attribute and value in the
<s:a> tag


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

Reply via email to