struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Letícia Álvares Barbalho <leticia.barba...@gmail.com>
Subject Re: Action[/UpdateDeleteColecao] missing resource 'button.delete' in key method map
Date Mon, 22 Aug 2005 20:39:35 GMT
Wendy, thank you a lot for the help
I ended up solving the problem using smart forwarding... it seemed a little 
better (and I must say, it worked faster hehe)
anyways, I'll try the solution you gave so I'll know it the next time

thank you

On 8/22/05, Wendy Smoak <java@wendysmoak.com> wrote:
> 
> > <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?
> 
> You're on the right track... but I admit to just hardcoding the text value
> for the
> button. :)
> 
> Change it to method=Add (or whatever the value is from
> ApplicationResources.properties) and it should start working. From there,
> you can figure out how to retrieve the value for the right locale. Without
> actually trying it, I think possibly <c:set> and <msg:format> (JSTL) and
> then use an expression inside the script.
> 
> --
> Wendy Smoak
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
Letícia Álvares Barbalho
leticia.barbalho@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message