Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

S:SUBMIT action usage

King, Leon C

2007-03-13

Replies:

Hi All,

       How do you utilize the s:submit tag in conjunction with
'Action Wildcards'. On my form I have 3 buttions:

       one to display tabular results, and the other 2 to display
graphs. Here is my code excerpt.





        <td>

          <s:submit type="button" action="%{'queryResult'}"

                templateDir="mytemplates" label="Query Result"
/>

        </td>

        <td width="10">&nbsp;</td>

        <td>

          <s:submit type="button" action="%{'asrTrend'}"

                templateDir="mytemplates" label="ASR Trend" />

        </td>

        <td width="10">&nbsp;</td>

        <td>

          <s:submit type="button" value="%{'mhtTrend'}"

            templateDir="mytemplates"   label="MHT Trend" />

        </td>  





   I want to have the abilty to define a *Action in the struts.xml
file that will allow these three submissions to use separate methods.



Thanks,



Leon

©2008 junlu.com - Jax Systems, LLC, U.S.A.