Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
my apologies, though I > hope you understand what I was getting at :). > > If this WAS the case, since you're not using EL, feel free to remove the > lines I gave you in an earlier post, > > > > > > As you don't need them. > > - Scott > > >

Re: Question about Lookup dispatch action

2006-08-23 Thread Scott Van Wart
mosho wrote: Hi Scott, I added a unspecified() method in my action class and it works now. I am not able to understand though how it is working, unspecified() is called when parameter name doesn;t exist, right? I have a parameter name= navigation and its value is shown as {submitText}. But it c

Re: Question about Lookup dispatch action

2006-08-23 Thread Michael Jouravlev
On 8/23/06, mosho <[EMAIL PROTECTED]> wrote: I am assuming it is calling unspecified() because it is not able to find the key name {submitText} Instead of assuming you can verify it. If you are using Firefox, LiveHTTPHeaders is invaluable plugin for HTTP traffic sniffing.

Re: Question about Lookup dispatch action

2006-08-23 Thread Wendy Smoak
On 8/23/06, mosho <[EMAIL PROTECTED]> wrote: I added a unspecified() method in my action class and it works now. I am not able to understand though how it is working, unspecified() is called when parameter name doesn;t exist, right? I have a parameter name= navigation and its value is shown as

Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
oesn't solve the problem. >> > Is the hidden field within the (here) tags? > > - Scott > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >

Re: Question about Lookup dispatch action

2006-08-23 Thread Scott Van Wart
mosho wrote: Yes, that's exactly the way it works. My navigation with lookupDispatchAction works perfectly. The problem arises when I have another to link instead of button to submit the form, how do I pass navigation parameter value then? The javascript with hidden field doesn't solve the proble

Re: Question about Lookup dispatch action

2006-08-23 Thread mosho
rrect me if I'm wrong :) > > Oh one last thing. Make sure you're NOT overriding execute() in your > subclass. It's fine for regular Action-derived classes, but you're > using LookupDispatchAction, which needs to run its own implementation of > execute(). > >

Re: Question about Lookup dispatch action

2006-08-22 Thread Scott Van Wart
mosho wrote: Request[/planName] does not contain handler parameter named navigation In your struts-config.xml, are you including 'parameter="navigation"' in your action mapping? A la: name="planNameForm" parameter="navigation"> ... The parameter gives you a place to pass additio

Re: Question about Lookup dispatch action

2006-08-22 Thread mosho
khina wrote: > >> >> The "return false;" would have to go LAST, otherwise onClickSubmit() >> wouldn't get called. > > > Yup..sorry.. my wrong.. > > -- > Puneet > > -- View this message in context: http://www.nabble.com/Question-abou

Re: Question about Lookup dispatch action

2006-08-20 Thread Puneet Lakhina
The "return false;" would have to go LAST, otherwise onClickSubmit() wouldn't get called. Yup..sorry.. my wrong.. -- Puneet

Re: Question about Lookup dispatch action

2006-08-19 Thread Scott Van Wart
Puneet Lakhina wrote: OK One more thing, if you need to call this javascript method even from ur submit button, to set the property value then you can do /> Notice the return false there. In case of a link simply do I hope this was what you wanted. The "return false;" would have to g

Re: Question about Lookup dispatch action

2006-08-19 Thread Puneet Lakhina
On 8/19/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: mosho wrote: > Hi Scott, > > It doesn't seem to work. > > My submit buttons look like this: > > >     > > Now, if I have a link, how can I set the property navigation for it. > " onClickSubmit() pic.gif " > Well first you

Re: Question about Lookup dispatch action

2006-08-18 Thread Scott Van Wart
mosho wrote: Hi Scott, It doesn't seem to work. My submit buttons look like this:     Now, if I have a link, how can I set the property navigation for it. " onClickSubmit() pic.gif " Well first you should probably get rid of 'value="Previous"', since you should be (an

Re: Question about Lookup dispatch action

2006-08-18 Thread mosho
map; > } > > Then it would take a little trickery in the JSP to get the right values > in the Javascript: > > > > > > So the web browser passes the correct value, and the lookup map will work: > > function onClickCreate() { > document.someForm.action.v

Re: Question about Lookup dispatch action

2006-08-17 Thread Scott Van Wart
Christopher Goldman wrote: On Thu, 2006-08-17 at 14:26 -0700, mosho wrote: Hi All, I have multiple buttons on my form and I am using LookUpDistpatchAction to submit the form depending on which button is clicked. I have another requirement now, I have multiple images that are going to be lin

Re: Question about Lookup dispatch action

2006-08-17 Thread Christopher Goldman
On Thu, 2006-08-17 at 14:26 -0700, mosho wrote: > Hi All, > > I have multiple buttons on my form and I am using LookUpDistpatchAction to > submit the form depending on which button is clicked. > > I have another requirement now, I have multiple images that are going to be > links. I need to submi

Question about Lookup dispatch action

2006-08-17 Thread mosho
to submit the form. How can I change/ set the value for my parameter? It is giving me error: Request[/selectLocation] does not contain handler parameter named navigation Thanks for your help, -- View this message in context: http://www.nabble.com/Question-about-Lookup-dispatch-action