What he is putting on the page and what is in his application resources properties cannot determine, ever, what keyMethodMap is returning. These are wrong avenues IF Alexander is accurate when he says the class is seeking the method "weiter". That can ONLY be the case if the keyMethodMap holds the value "weiter" under the key being called. If a method is being returned at all, everything else is working the way it should. Did you change "weiter" to "forward" and forget to recompile?
Jack On Wed, 8 Dec 2004 09:13:34 -0700, Jim Barrows <[EMAIL PROTECTED]> wrote: > > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 08, 2004 8:03 AM > > To: [EMAIL PROTECTED] > > Subject: RE: LookupDispatchAction doesn't lookup mapping > > > > > > Hi > > > > You write that : The LookupDispatchAction tries to call a method named > > "weiter" instead > > of "forward", while it calls the "back"-method as expected. > > > > As far as I remember "weiter" is the German word for "forward" - There > > might be a locale issue here. > > That would be possible if he was getting the english version instead of the > german version he's apparently putting on the page. > > > > > Hermod > > > > > > > > -----Original Message----- > > From: Alexander Czernay [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, December 08, 2004 2:14 PM > > To: Struts Users Mailing List > > Subject: Re: LookupDispatchAction doesn't lookup mapping > > > > > > Dakota Jack wrote: > > > My experience is that the computer is always right, so I > > would look in > > > my properites file, if I were you, and see whether or not I had > > > reversed the myButtonForward=go to go=myButtonForward. Did you? I > > > feel compelled to reiterate that LookupDispatchAction is a > > fairly poor > > > example of the code needed to do this stuff, in my opinion. > > > > > > Jack > > > > > > > > > > I will definitely try your suggestion out, but before that, I > > wanted to > > figure out, what I had done wrong using the LookupDispatchAction. > > > > So now some direct copy & paste from my code. > > My ApplicationRessurces.properties looks like this: > > <snip> > > authors-form.button.forward = weiter > > authors-form.button.back = zurück > > </snip> > > > > The jsp: > > <snip> > > <html:form action="/authors-list"><html:submit > > property="submit"><bean:message > > key="authors-form.button.back"/></html:submit></html:form> > > <html:form action="/authors-list"><html:submit > > property="submit"><bean:message > > key="authors-form.button.forward"/></html:submit></html:form> > > </snip> > > > > And finally the Action-Map: > > <snip> > > protected Map getKeyMethodMap() { > > Map map = new HashMap(); > > map.put("authors-form.button.create", > > "create"); > > map.put("authors-form.button.edit", "edit"); > > map.put("authors-form.button.remove", > > "remove"); > > map.put("authors-form.button.forward", > > "forward"); > > map.put("authors-form.button.back", "back"); > > return map; > > } > > </snip> > > > > The back-button works, while the forward doesn't. > > > > The LookupDispatchAction tries to call a method named > > "weiter" instead > > of "forward", while it calls the "back"-method as expected. > > > > Alexander > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > * * * * * * * > > > > This email with attachments is solely for the use of the individual or > > entity to whom it is addressed. Please also be aware that the > > DnB NOR Group > > cannot accept any payment orders or other legally binding > > correspondence with > > customers as a part of an email. > > > > This email message has been virus checked by the virus programs used > > in the DnB NOR Group. > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > * * * * * * * > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]