Nadia Kunkov wrote:
I'm still figuring out how to use struts tags. I'm trying to have three buttons ( add, edit ,delete) with a property called method so that I can use DispatchAction. Here is a snippet of my jsp. When I look at it in the browser I don't see the buttons. What am I doing wrong? Also, is DispatchAction a good way to go? I'm going to have a lot of add, edit, delete screens.

Thanks in advance

<table cellpadding="2" cellspacing="2" border="0"
 style="text-align: left; width: 50%;">
  <tbody>
    <tr>
      <td style="vertical-align: top; text-align: center;">
        <html:submit property="method" value="countryAdd"></html:submit> </td>
      <td style="vertical-align: top; text-align: center;">
        <html:submit property="method" value="countryEdit"></html:submit> </td>
      <td style="vertical-align: top; text-align: center;">
        <html:submit property="method" value="countryDelete"></html:submit> </td>
    </tr>
  </tbody>
</table>

Nadia




If this is your whole page, you are missing some stuff. Specifically, the taglib declaration at the top of the page:
<%@ taglib uri="/tags/struts-html" prefix="html" %>


and an html:form surrounding your html:submit buttons. That html:form needs to also be linked up to a form bean definition in your struts-config file (which has a form-property called method).

I'll leave the arugment about dispatch action to those that are already arguing about it :)


Matt

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



Reply via email to