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
Hello, Nadia,
I think your buttons did not come up because you omitted to put the <%@ taglib uri='struts-html' prefix='html' %> or, whatever you use to allow your page to find the tags, on the page. David is right about the wiki reference:
Here are five solutions. http://wiki.apache.org/struts/StrutsCatalogFiveMultipleButtonSolutions Four of these solutions are better than DispatchAction and its progeny, in my opinion. In order to see what
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]