You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jonathan Porterfield <a0...@hotmail.com> on 2001/10/22 19:06:52 UTC

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