Seems to me that you do not really understand what LookupDispatchAction is for and how does it work. Do you have property file that maps button caption to "button.add" property name? Well, even if you do, you do not have to use LookupDispatchAction, because you use a link.
Use standard DispathAction instead. Or use something else, like SelectAction, which works uniformly with pushbuttons, links and imagebuttons: http://struts.sourceforge.net/strutsdialogs/selectaction.html --- Struts Dialogs: http://struts.sourceforge.net/strutsdialogs On 8/22/05, Letícia Álvares Barbalho <[EMAIL PROTECTED]> wrote: > Well, I should be embarrassed by now. Actually, you're 100% correct: > something is sending literally 'button.delete' as the value of method param, > instead of the value from the .properties file. And this something would be > me. > > It happens that I am not using html:submit buttons to call the dispatch > action. Instead of it, I'm trying to use links, like this: > > <a href="javascript:void(0);" onclick="javascript:dispatchIt();" > property="method"> <bean:message key="button.add"/></a> > > Well, if it worked like the html:button, it would send the method with the > value from the bean. But it obviously doesn't. So, I put this js function to > be called onclick: > > function dispatchIt() > { > document.addColecaoForm.action="/AugeProducao/UpdateDeleteColecao.do?method= > button.add"; > document.addColecaoForm.submit(); > } > > > And that's causing the error. So, if the property=method doesn't work, and > passing it literally doesn't work... that means I cannot use links to submit > the form? Or am I doing it totally wrong? > > Sorry, thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]