turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brekke, Jeff" <Jeff.Bre...@qg.com>
Subject RE: Action
Date Mon, 22 Oct 2001 17:26:14 GMT
You must extend ActionEvent.


-----------------------------------------------------------------
Jeffrey D. Brekke                                   Quad/Graphics
Jeff.Brekke@qg.com                              http://www.qg.com
-----------------------------------------------------------------



> -----Original Message-----
> From: Jonathan Porterfield [mailto:a02114@hotmail.com]
> Sent: Monday, October 22, 2001 12:07 PM
> To: turbine-user@jakarta.apache.org
> Subject: Action
> 
> 
> I've looked through this a gazillion times. I must be missing 
> something 
> really simple, but am just not getting it. Please someone have a look.
> 
> It's a very basic Action, just for Actions sake.
> 
> Problem description:
> Always returns "Button not found!"
> 
> From:
> ******************
> HelloAction.java
> ******************
> package org.mycompany.newapp.modules.actions;
> 
> import org.apache.turbine.modules.Action;
> import org.apache.turbine.util.RunData;
> 
> public class HelloAction extends Action
> {
>     public void doHello (RunData data) throws Exception
>     {
>         data.setMessage("Hello from your action.");
>     }
> 
>     public void doPerform(RunData data) throws Exception
>     {
>         data.setMessage("Button not found!");
>     }
> }
> 
> ******************
> HelloActions.vm
> ******************
> <form method="post" 
> action="$link.setPage("HelloActions.vm").setAction("HelloAction")">
> 
> <input type="submit" name="eventSubmit_doHello" value="Say Hello">
> <hr />
> 
> #if ($data.Message)
>   $data.Message
> #end
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp


---------------------------------------------------------------------
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


Mime
View raw message