You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eric Nelson <er...@simplifile.com> on 2008/09/30 18:42:45 UTC

Invoking Action Class from JSP

Hi all.  I'm looking into how to invoke a Strut's action from a JSP
page.  I'm able to do it pretty easy in Stripes with this code:

 

<%@page import="simplifile.web.action.ScheduleTransactionAction"%>

<%@page import="net.sourceforge.stripes.action.ForwardResolution"%>

<%@page
import="simplifile.quail.*,java.util.*,java.text.*,simplifile.search.*,s
implifile.net.*,simplifile.ach.*" errorPage="../error.jsp"%>%@include
file="../html/nocache.html"%
<mailto:%25@include%20file=%22../html/nocache.html%22%25> 

 

<%

    ForwardResolution forwardResolution = new
ForwardResolution(ScheduleTransactionAction.class, "schedule_bounce");

    forwardResolution.execute(request, response);

%>

 

I'm looking into how to do the same exact thing in Struts.  Any
thoughts?

 

--Eric