You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Henrik W. Hansen" <sp...@procesgruppen.dk> on 2003/04/06 23:04:47 UTC

Requested Action not found

Hi,
I have a newbie question regarding turbine. Hopefully you can easily 
answer RTFM and maybe provide a link ;-)
Here goes: my problem is calling an action from velocity.
Having the follwing in my .vm
<a href=$jslink.getAction( "HelloAction" )>Test</a>
I think i should be able to call the HelloAction (right).

But i get the follwing exception:

Horrible Exception: java.lang.ClassNotFoundException: 

	Requested Action not found: HelloAction
	Turbine looked in the following modules.packages path: 
	[org.apache.jetspeed.modules, dk.pg.portal.modules, org.apache.turbine.modules]

What am I doing wrong.

Furthermore, how do I call a method on the HelloAction?


Best regards Henrik



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


AW: Requested Action not found

Posted by Jürgen Hoffmann <jh...@byteaction.de>.
Hi,

Why not use it in a regular Link?

<a
href="$link.setPage("myPage.vm").setAction("MyAction").addQueryData("eve
ntSubmit_doMyactionmethod","1")">push me</a>

This will point the user to the myPage.vm Screen, but execute
doMyactionmethod in MyAction before the Screen is displayed. I do this
all the time works like a Charm. All needed Parameters for the Action,
can be added using addQueryData...

No JavaScript, no Nothing, just plain HTML

Kind regards
 
Jürgen Hoffmann
ByteACTION GmbH
 
cert. Perl Programmer
cert. Linux System Administrator
cert. Java Programmer



-----Ursprüngliche Nachricht-----
Von: Otto Cordero [mailto:ocordero@sipecom.com] 
Gesendet: Montag, 7. April 2003 19:33
An: Turbine Users List
Betreff: Re: Requested Action not found


Hi, If you already solved the "action not found" problem, here is an
extra tip on how to use action events. Sometimes you want to use action
events without attaching it to a submit button. Probably there is
another way, but I have done this and it works so far,

* having a hidden element in the form:
<input type="hidden" name="actionevent" value="">

* wrapping form.submit in a javascript function that changes the
actionevent name doSubmit(actionevent_name){
    document.formname.actionevent.name=actionevent_name;
    document.formname.submit();
}

and calling it at any time in your html code with the action event name.
doSubmit('eventSubmit_doYourActionEvent');

So with this you can attach any html event to any function in your
Action. Hope it helps,

Otto.

----- Original Message -----
From: "Chris K Chew" <ch...@fenetics.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Sunday, April 06, 2003 5:17 PM
Subject: RE: Requested Action not found


> > From: Henrik W. Hansen [mailto:spam@procesgruppen.dk]
> >
> > Horrible Exception: java.lang.ClassNotFoundException:
> >
> > Requested Action not found: HelloAction
> > Turbine looked in the following modules.packages path: 
> > [org.apache.jetspeed.modules, dk.pg.portal.modules, 
> > org.apache.turbine.modules]
> >
> > What am I doing wrong.
>
> RTFT-UMLA's:
>
http://marc.theaimsgroup.com/?l=turbine-user&w=2&r=1&s=Requested+Action+
not+
> found&q=b
>
> > Furthermore, how do I call a method on the HelloAction?
>
> RTFM:
>
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/action-event-howto
.htm
> l
>
> Seriously, you should be able to track down the answer to your action 
> not found in the list archives.  Top culprits are incorrect jar'ing 
> and typos
in
> the package declaration atop your Action class.
>
> Action events are a nice way of separating and organizing Action 
> sub-processes.
>
> Good luck,
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>


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



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


Re: Requested Action not found

Posted by Otto Cordero <oc...@sipecom.com>.
Hi, If you already solved the "action not found" problem, here is an extra
tip on how to use action events.
Sometimes you want to use action events without attaching it to a submit
button. Probably there is another way, but I have done this and it works so
far,

* having a hidden element in the form:
<input type="hidden" name="actionevent" value="">

* wrapping form.submit in a javascript function that changes the actionevent
name
doSubmit(actionevent_name){
    document.formname.actionevent.name=actionevent_name;
    document.formname.submit();
}

and calling it at any time in your html code with the action event name.
doSubmit('eventSubmit_doYourActionEvent');

So with this you can attach any html event to any function in your Action.
Hope it helps,

Otto.

----- Original Message -----
From: "Chris K Chew" <ch...@fenetics.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Sunday, April 06, 2003 5:17 PM
Subject: RE: Requested Action not found


> > From: Henrik W. Hansen [mailto:spam@procesgruppen.dk]
> >
> > Horrible Exception: java.lang.ClassNotFoundException:
> >
> > Requested Action not found: HelloAction
> > Turbine looked in the following modules.packages path:
> > [org.apache.jetspeed.modules, dk.pg.portal.modules,
> > org.apache.turbine.modules]
> >
> > What am I doing wrong.
>
> RTFT-UMLA's:
>
http://marc.theaimsgroup.com/?l=turbine-user&w=2&r=1&s=Requested+Action+not+
> found&q=b
>
> > Furthermore, how do I call a method on the HelloAction?
>
> RTFM:
>
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/action-event-howto.htm
> l
>
> Seriously, you should be able to track down the answer to your action not
> found in the list archives.  Top culprits are incorrect jar'ing and typos
in
> the package declaration atop your Action class.
>
> Action events are a nice way of separating and organizing Action
> sub-processes.
>
> Good luck,
>
> Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
>


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


RE: Requested Action not found

Posted by Chris K Chew <ch...@fenetics.com>.
> From: Henrik W. Hansen [mailto:spam@procesgruppen.dk]
>
> Horrible Exception: java.lang.ClassNotFoundException:
>
> 	Requested Action not found: HelloAction
> 	Turbine looked in the following modules.packages path:
> 	[org.apache.jetspeed.modules, dk.pg.portal.modules,
> org.apache.turbine.modules]
>
> What am I doing wrong.

RTFT-UMLA's:
http://marc.theaimsgroup.com/?l=turbine-user&w=2&r=1&s=Requested+Action+not+
found&q=b

> Furthermore, how do I call a method on the HelloAction?

RTFM:
http://jakarta.apache.org/turbine/turbine-2.2.1/howto/action-event-howto.htm
l

Seriously, you should be able to track down the answer to your action not
found in the list archives.  Top culprits are incorrect jar'ing and typos in
the package declaration atop your Action class.

Action events are a nice way of separating and organizing Action
sub-processes.

Good luck,

Chris


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