You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Johnson <ch...@gmail.com> on 2005/04/15 21:00:00 UTC

Dispatch Action Strangeness

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 property="runGraphFlag" onclick="set('graph');">Run
Graph</html:submit>

2. Created a "graph" method on the Action class with the same
signature at the execute() on the action

however the graph method isn't getting called. 

My Action class still extends "Action" should it inherit
DispatchAction instead? What am I missing?

-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Jeff Beal <jb...@gmail.com>.
Are you overriding execute() in either your Action or BaseAction? 

On 4/18/05, David Johnson <ch...@gmail.com> wrote:
> Any further insights on this? It seems I'm missing something simple here...

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Dave Newton <ne...@pingsite.com>.
David Johnson wrote:

>which part to you need to see? I'm soooo 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 well.

Generally the relevent portions of the struts-config and Action (in your 
case, the base Action as well) are usually enough.

Better too much information than too little, especially if you have a 
site you can put it on rather than sending it all to the entire list.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
which part to you need to see? I'm soooo thankful for any help :)

On 4/18/05, Dave Newton <ne...@pingsite.com> 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
> code, because on the surface everything appears to be fine.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

Re: Dispatch Action Strangeness

Posted by Dave Newton <ne...@pingsite.com>.
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



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Hubert Rabago <hr...@gmail.com>.
Does it have an execute() method?  If so, what does the execute method do?

Hubert

On 4/18/05, David Johnson <ch...@gmail.com> wrote:
> the BaseAction has
> import org.apache.commons.logging.Log;
> import org.apache.commons.logging.LogFactory;
> 
> private Log log;
> 
> and a constructor that initialized the log object so I can perform
> logging in all my actions.
> 
> In addition it has a checkAuth() method that makes sure the user is
> logged in properly.
> 
> 
> On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> > One part I missed was when you said your base action is extending
> > DispatchAction.  What is it that your base action is doing?  It could
> > be conflicting with the dispatch logic.
> >
> > Hubert
> >
> > On 4/18/05, DGraham@evergreeninvestments.com
> > <DG...@evergreeninvestments.com> wrote:
> > > You've confirm that you've changed the action-mapping so that it is now
> > > using your new dispatch action?  If that's correct, then I'd say you need
> > > to break at DispatchAction.execute() and step through it to see what's
> > > going on.
> > >
> > > Dennis
> > >
> > >
> > > David Johnson <ch...@gmail.com>
> > > 04/18/2005 03:28 PM
> > > Please respond to
> > > "Struts Users Mailing List" <us...@struts.apache.org>
> > >
> > > To
> > > Struts Users Mailing List <us...@struts.apache.org>, Hubert Rabago
> > > <hr...@gmail.com>
> > > 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 value (graph or whatever I clicked in the form)
> > >
> > > On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> > > > 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 <ch...@gmail.com> wrote:
> > > > > 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 my Action inherit from
> > > > > org.apache.struts.actions.DispatchAction (actually my BaseAction
> > > > > inherits from it... that wouldnt make a diffference though correct?
> > > > >
> > > > > On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > > > > > in my HTML I have
> > > > > >
> > > > > > <html:hidden property="dispatch" value="error"/>
> > > > > >
> > > > > > in my struts config (for the appropriate action) I have
> > > > > >
> > > > > > parameter="dispatch"
> > > > > >
> > > > > > Is there something else I need?
> > > > > >
> > > > > > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > > > > > 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 your action mapping in
> > > your
> > > > > > > struts config?
> > > > > > >
> > > > > > > "set('graph'); I'm assuming is setting a hidden parameter (your
> > > dispatch
> > > > > > > parameter)... whatever that parameter is, is the one you need also
> > > > > > > defined in your action mapping.
> > > > > > >
> > > > > > > --
> > > > > > > Rick
> > > > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> > > --
> > > -Dave
> > > ChaChaNY@Gmail.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> --
> -Dave
> ChaChaNY@Gmail.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
the BaseAction has 
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

private Log log;

and a constructor that initialized the log object so I can perform
logging in all my actions.


In addition it has a checkAuth() method that makes sure the user is
logged in properly.


On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> One part I missed was when you said your base action is extending
> DispatchAction.  What is it that your base action is doing?  It could
> be conflicting with the dispatch logic.
> 
> Hubert
> 
> On 4/18/05, DGraham@evergreeninvestments.com
> <DG...@evergreeninvestments.com> wrote:
> > You've confirm that you've changed the action-mapping so that it is now
> > using your new dispatch action?  If that's correct, then I'd say you need
> > to break at DispatchAction.execute() and step through it to see what's
> > going on.
> >
> > Dennis
> >
> >
> > David Johnson <ch...@gmail.com>
> > 04/18/2005 03:28 PM
> > Please respond to
> > "Struts Users Mailing List" <us...@struts.apache.org>
> >
> > To
> > Struts Users Mailing List <us...@struts.apache.org>, Hubert Rabago
> > <hr...@gmail.com>
> > 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 value (graph or whatever I clicked in the form)
> >
> > On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> > > 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 <ch...@gmail.com> wrote:
> > > > 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 my Action inherit from
> > > > org.apache.struts.actions.DispatchAction (actually my BaseAction
> > > > inherits from it... that wouldnt make a diffference though correct?
> > > >
> > > > On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > > > > in my HTML I have
> > > > >
> > > > > <html:hidden property="dispatch" value="error"/>
> > > > >
> > > > > in my struts config (for the appropriate action) I have
> > > > >
> > > > > parameter="dispatch"
> > > > >
> > > > > Is there something else I need?
> > > > >
> > > > > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > > > > 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 your action mapping in
> > your
> > > > > > struts config?
> > > > > >
> > > > > > "set('graph'); I'm assuming is setting a hidden parameter (your
> > dispatch
> > > > > > parameter)... whatever that parameter is, is the one you need also
> > > > > > defined in your action mapping.
> > > > > >
> > > > > > --
> > > > > > Rick
> > > > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> > --
> > -Dave
> > ChaChaNY@Gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Hubert Rabago <hr...@gmail.com>.
One part I missed was when you said your base action is extending
DispatchAction.  What is it that your base action is doing?  It could
be conflicting with the dispatch logic.

Hubert

On 4/18/05, DGraham@evergreeninvestments.com
<DG...@evergreeninvestments.com> wrote:
> You've confirm that you've changed the action-mapping so that it is now
> using your new dispatch action?  If that's correct, then I'd say you need
> to break at DispatchAction.execute() and step through it to see what's
> going on.
> 
> Dennis
> 
> 
> David Johnson <ch...@gmail.com>
> 04/18/2005 03:28 PM
> Please respond to
> "Struts Users Mailing List" <us...@struts.apache.org>
> 
> To
> Struts Users Mailing List <us...@struts.apache.org>, Hubert Rabago
> <hr...@gmail.com>
> 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 value (graph or whatever I clicked in the form)
> 
> On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> > 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 <ch...@gmail.com> wrote:
> > > 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 my Action inherit from
> > > org.apache.struts.actions.DispatchAction (actually my BaseAction
> > > inherits from it... that wouldnt make a diffference though correct?
> > >
> > > On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > > > in my HTML I have
> > > >
> > > > <html:hidden property="dispatch" value="error"/>
> > > >
> > > > in my struts config (for the appropriate action) I have
> > > >
> > > > parameter="dispatch"
> > > >
> > > > Is there something else I need?
> > > >
> > > > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > > > 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 your action mapping in
> your
> > > > > struts config?
> > > > >
> > > > > "set('graph'); I'm assuming is setting a hidden parameter (your
> dispatch
> > > > > parameter)... whatever that parameter is, is the one you need also
> > > > > defined in your action mapping.
> > > > >
> > > > > --
> > > > > Rick
> > > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> --
> -Dave
> ChaChaNY@Gmail.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
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" path="page.invalidSession" redirect="true"/>
<forward name="combineFailed" path="page.portfolio.summary" 
redirect="true"/>
<forward name="noDispatch" path="page.portfolio.summary" 
redirect="true"/><!-- FIXME go to real error page-->
</action>

On 4/18/05, Dave Newton <ne...@pingsite.com> wrote:
> 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 DispatchAction)
> look like? I've never had any issues with DispatchAction or its
> subclasses, so I'm a little confused as to why it wouldn't work.
> 
> You probably already posted all of it, but the relevent snippets from
> struts-config, the JSP, the base action, and the action might be handy
> again :)
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

Re: Dispatch Action Strangeness

Posted by Dave Newton <ne...@pingsite.com>.
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 DispatchAction) 
look like? I've never had any issues with DispatchAction or its 
subclasses, so I'm a little confused as to why it wouldn't work.

You probably already posted all of it, but the relevent snippets from 
struts-config, the JSP, the base action, and the action might be handy 
again :)

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by DG...@EvergreenInvestments.com.
You've confirm that you've changed the action-mapping so that it is now 
using your new dispatch action?  If that's correct, then I'd say you need 
to break at DispatchAction.execute() and step through it to see what's 
going on.

Dennis



David Johnson <ch...@gmail.com> 
04/18/2005 03:28 PM
Please respond to
"Struts Users Mailing List" <us...@struts.apache.org>


To
Struts Users Mailing List <us...@struts.apache.org>, Hubert Rabago 
<hr...@gmail.com>
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 value (graph or whatever I clicked in the form)

On 4/18/05, Hubert Rabago <hr...@gmail.com> wrote:
> 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 <ch...@gmail.com> wrote:
> > 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 my Action inherit from
> > org.apache.struts.actions.DispatchAction (actually my BaseAction
> > inherits from it... that wouldnt make a diffference though correct?
> >
> > On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > > in my HTML I have
> > >
> > > <html:hidden property="dispatch" value="error"/>
> > >
> > > in my struts config (for the appropriate action) I have
> > >
> > > parameter="dispatch"
> > >
> > > Is there something else I need?
> > >
> > > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > > 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 your action mapping in 
your
> > > > struts config?
> > > >
> > > > "set('graph'); I'm assuming is setting a hidden parameter (your 
dispatch
> > > > parameter)... whatever that parameter is, is the one you need also
> > > > defined in your action mapping.
> > > >
> > > > --
> > > > Rick
> > > >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
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 <hr...@gmail.com> wrote:
> 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 <ch...@gmail.com> wrote:
> > 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 my Action inherit from
> > org.apache.struts.actions.DispatchAction (actually my BaseAction
> > inherits from it... that wouldnt make a diffference though correct?
> >
> > On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > > in my HTML I have
> > >
> > > <html:hidden property="dispatch" value="error"/>
> > >
> > > in my struts config (for the appropriate action) I have
> > >
> > > parameter="dispatch"
> > >
> > > Is there something else I need?
> > >
> > > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > > 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 your action mapping in your
> > > > struts config?
> > > >
> > > > "set('graph'); I'm assuming is setting a hidden parameter (your dispatch
> > > > parameter)... whatever that parameter is, is the one you need also
> > > > defined in your action mapping.
> > > >
> > > > --
> > > > Rick
> > > >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Hubert Rabago <hr...@gmail.com>.
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 <ch...@gmail.com> wrote:
> 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 my Action inherit from
> org.apache.struts.actions.DispatchAction (actually my BaseAction
> inherits from it... that wouldnt make a diffference though correct?
> 
> On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> > in my HTML I have
> >
> > <html:hidden property="dispatch" value="error"/>
> >
> > in my struts config (for the appropriate action) I have
> >
> > parameter="dispatch"
> >
> > Is there something else I need?
> >
> > On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > > 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 your action mapping in your
> > > struts config?
> > >
> > > "set('graph'); I'm assuming is setting a hidden parameter (your dispatch
> > > parameter)... whatever that parameter is, is the one you need also
> > > defined in your action mapping.
> > >
> > > --
> > > Rick
> > >

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
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 my Action inherit from
org.apache.struts.actions.DispatchAction (actually my BaseAction
inherits from it... that wouldnt make a diffference though correct?

On 4/15/05, David Johnson <ch...@gmail.com> wrote:
> in my HTML I have
> 
> <html:hidden property="dispatch" value="error"/>
> 
> in my struts config (for the appropriate action) I have
> 
> parameter="dispatch"
> 
> Is there something else I need?
> 
> On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> > 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 your action mapping in your
> > struts config?
> >
> > "set('graph'); I'm assuming is setting a hidden parameter (your dispatch
> > parameter)... whatever that parameter is, is the one you need also
> > defined in your action mapping.
> >
> > --
> > Rick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> --
> -Dave
> ChaChaNY@Gmail.com
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
in my HTML I have

<html:hidden property="dispatch" value="error"/>

in my struts config (for the appropriate action) I have

parameter="dispatch"

Is there something else I need?

On 4/15/05, Rick Reumann <st...@reumann.net> wrote:
> 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 your action mapping in your
> struts config?
> 
> "set('graph'); I'm assuming is setting a hidden parameter (your dispatch
> parameter)... whatever that parameter is, is the one you need also
> defined in your action mapping.
> 
> --
> Rick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Rick Reumann <st...@reumann.net>.
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 your action mapping in your 
struts config?

"set('graph'); I'm assuming is setting a hidden parameter (your dispatch 
parameter)... whatever that parameter is, is the one you need also 
defined in your action mapping.

-- 
Rick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by David Johnson <ch...@gmail.com>.
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 <ne...@pingsite.com> wrote:
> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
-Dave
ChaChaNY@Gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Dispatch Action Strangeness

Posted by Dave Newton <ne...@pingsite.com>.
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org