LookupDispatchAction (Newbie)

2004-08-27 Thread Varley, Roger
Hi I have implemented a LookupDispatchAction action class to deal with a form that contains multiple submit buttons as outlined in the sample chapter from "The Struts Survival Guide" at http://www.objectsource.com/Chapter4.pdf I've got everything working but I would be grateful if someone could

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
A quick look at the DispatchAction source (if you don`t have the source, you can download it) would the best way for you to understand. It`s not that complicated. I never took a detailed look at the source, but basically, it gets the mapping for the method specified in struts-config.xml and then g

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Bill Siggelkow
http://struts.apache.org/api/org/apache/struts/actions/LookupDispatchAction.html Bill Siggelkow Varley, Roger wrote: Hi I have implemented a LookupDispatchAction action class to deal with a form that contains multiple submit buttons as outlined in the sample chapter from "The Struts Survival Guide"

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
Once you see how LookupDispatchAction works, you should also see that it is an unnecessarily complicated solution. Try http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSimplified which shows that all you have to do is: String button = null; Enumeration enum = request.getParame

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
st > Subject: Re: LookupDispatchAction (Newbie) > > > Once you see how LookupDispatchAction works, you should also > see that it > is an unnecessarily complicated solution. Try > http://wiki.apache.org/struts/StrutsCatalogMultipleImageTagsSi > mplified >

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
Paul McCulloch wrote: Am I right in thinking that your solution works for image buttons, whereas the LookupDispatchAction is for text labeled buttons? Paul No, my solution works for both, Paul. The code mined is decoupled entirely from the display. Michael --

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
I missing? Thanks, Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 2:54 PM > To: Struts Users Mailing List > Subject: Re: LookupDispatchAction (Newbie) > > > Paul McCulloch wrote: > > >Am I

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
send the x & y coordinates to the server > in submission. > > What am I missing? > > Thanks, > > Paul > > > > -Original Message- > > From: Michael McGrady > [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 27, 2004 2:54 PM > > To: St

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
om: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 2:54 PM To: Struts Users Mailing List Subject: Re: LookupDispatchAction (Newbie) Paul McCulloch wrote: Am I right in thinking that your solution works for image buttons, whereas the LookupDispatchAction is for t

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 2:54 PM To: Struts Users Mailing List Subject: Re: LookupDispatchAction (Newbie) Paul McCulloch wrote: Am I right in thinking that your solution works for image buttons, whereas the LookupDispatchAction is fo

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
Leandro Melo wrote: In my application, i decided to make of my submissions that go for Actions must have the parameter "method=nameOfMethodToBeCalled" in the cases the submissions don`t came from image buttons. This is way too complicated, Leandro. Just do the following and use the solution I

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Leandro Melo
> > >Paul > > > > > > > > > >>-Original Message- > >>From: Michael McGrady > [mailto:[EMAIL PROTECTED] > >>Sent: Friday, August 27, 2004 2:54 PM > >>To: Struts Users Mailing List > >>Subject:

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
Thanks, Paul -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Friday, August 27, 2004 2:54 PM To: Struts Users Mailing List Subject: Re: LookupDispatchAction (Newbie) Paul McCulloch wrote: Am I right in thinking that your solu

RE: LookupDispatchAction (Newbie)

2004-08-27 Thread Paul McCulloch
Doh! Cheers, Paul > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Friday, August 27, 2004 3:23 PM > To: Struts Users Mailing List > Subject: Re: LookupDispatchAction (Newbie) > > > I just assumed on the wiki that people woul

Re: LookupDispatchAction (Newbie)

2004-08-27 Thread Michael McGrady
23 PM To: Struts Users Mailing List Subject: Re: LookupDispatchAction (Newbie) I just assumed on the wiki that people would extend to submit as follows: I will amend the wiki to reflect that possibility. This just mimics the functionality of the tag. Michael