
package yourpackage;

import org.apache.struts.Globals;
import org.apache.struts.config.ActionConfig;
import org.apache.velocity.tools.struts.StrutsLinkTool;


public class MyStrutLinkTool extends StrutsLinkTool {

    public ActionConfig getInputAction() {
        return (ActionConfig)request.getAttribute(Globals.MAPPING_KEY);
    }

    public String getInputActionPath() {
        return (getInputAction() != null) ?  getInputAction().getPath() : null;
    }

}

