Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
Any further insights on this? It seems I'm missing something simple here... I dont want ot have to manually call methods on my action... help? :) Is there something beyond the html:hidden property=dispatch value=error/ that I need (and the hidden field named dispatch) and of course to have

Re: Dispatch Action Strangeness

2005-04-18 Thread Jeff Beal
Are you overriding execute() in either your Action or BaseAction? On 4/18/05, David Johnson [EMAIL PROTECTED] wrote: Any further insights on this? It seems I'm missing something simple here... - To unsubscribe, e-mail: [EMAIL

Re: Dispatch Action Strangeness

2005-04-18 Thread Hubert Rabago
IIRC you wanted the graph method to be called because you had set('graph') in an onclick handler. What does the set('graph') method do? Does it modify the dispatch form field? On 4/18/05, David Johnson [EMAIL PROTECTED] wrote: Any further insights on this? It seems I'm missing something simple

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
yes, exactly. If changed the value of the hidden field to graph That part is working too. If I do a log.debug (dispatch=+theForm.getDispatch()); it puts out the right value (graph or whatever I clicked in the form) On 4/18/05, Hubert Rabago [EMAIL PROTECTED] wrote: IIRC you wanted the graph

Re: Dispatch Action Strangeness

2005-04-18 Thread DGraham
Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Hubert Rabago [EMAIL PROTECTED] cc Subject Re: Dispatch Action Strangeness yes, exactly. If changed the value of the hidden field to graph That part is working too. If I do

Re: Dispatch Action Strangeness

2005-04-18 Thread Hubert Rabago
@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Hubert Rabago [EMAIL PROTECTED] cc Subject Re: Dispatch Action Strangeness yes, exactly. If changed the value of the hidden field to graph That part is working too. If I do a log.debug (dispatch=+theForm.getDispatch

Re: Dispatch Action Strangeness

2005-04-18 Thread Dave Newton
David Johnson wrote: yes, exactly. If changed the value of the hidden field to graph That part is working too. If I do a log.debug (dispatch=+theForm.getDispatch()); it puts out the right value (graph or whatever I clicked in the form) What does the code for your base action (that subclasses

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
yeah. this is my Action mapping action path=/PortfolioSummaryAction name=portfolioSummaryForm scope=request input=page.portfolioSummary type=com.foo.struts.PortfolioSummaryAction parameter=dispatch forward name=success path=page.portfolio.summary redirect=true/ forward name=invalidSession

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
/18/2005 03:28 PM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org, Hubert Rabago [EMAIL PROTECTED] cc Subject Re: Dispatch Action Strangeness yes, exactly. If changed the value of the hidden field

Re: Dispatch Action Strangeness

2005-04-18 Thread Hubert Rabago
@struts.apache.org, Hubert Rabago [EMAIL PROTECTED] cc Subject Re: Dispatch Action Strangeness yes, exactly. If changed the value of the hidden field to graph That part is working too. If I do a log.debug (dispatch=+theForm.getDispatch()); it puts out the right

Re: Dispatch Action Strangeness

2005-04-18 Thread Dave Newton
Hubert Rabago wrote: Does it have an execute() method? If so, what does the execute method do? Yeah--what you gave isn't enough. In order to diagnose we must see the code, because on the surface everything appears to be fine. Dave

Re: Dispatch Action Strangeness

2005-04-18 Thread David Johnson
which part to you need to see? I'm s thankful for any help :) On 4/18/05, Dave Newton [EMAIL PROTECTED] wrote: Hubert Rabago wrote: Does it have an execute() method? If so, what does the execute method do? Yeah--what you gave isn't enough. In order to diagnose we must see the

Re: Dispatch Action Strangeness

2005-04-18 Thread Dave Newton
David Johnson wrote: which part to you need to see? I'm s thankful for any help :) All of it? What Hubert is asking is whether or not you override the execute method of the DispatchAction subclass, as that could easily munge up the dispatching. That's certainly among my top questions as

Dispatch Action Strangeness

2005-04-15 Thread David Johnson
Hi there I thought I'd break this into its own thread. I'm trying to implement a DispatchAction as discussed by Ted Husted here -- http://husted.com/struts/tips/002.html I have done the following 1. changed the html:submit to the following (along with the necassary javascript) html:submit

Re: Dispatch Action Strangeness

2005-04-15 Thread Dave Newton
David Johnson wrote: My Action class still extends Action should it inherit DispatchAction instead? What am I missing? If it doesn't extend DispatchAction how would it know to dispatch? Dave - To unsubscribe, e-mail: [EMAIL

Re: Dispatch Action Strangeness

2005-04-15 Thread David Johnson
I saw that after I sent it. I have changed it to inherit from org.apache.struts.actions.DispatchAction (actually my BaseAction inherits from DispatchAction) but the methods still arent being called. strange right? On 4/15/05, Dave Newton [EMAIL PROTECTED] wrote: David Johnson wrote: My

Re: Dispatch Action Strangeness

2005-04-15 Thread Rick Reumann
David Johnson wrote the following on 4/15/2005 3:21 PM: I saw that after I sent it. I have changed it to inherit from org.apache.struts.actions.DispatchAction (actually my BaseAction inherits from DispatchAction) but the methods still arent being called. You sure you have the parameter property in