You can use the struts <s:action /> tag.  Just include a reference to the 
struts-tags<%@
Then call the action like this: 
<s:actionid="actionId"name="actionName"namespace="/"executeResult="true"/>http://struts.apache.org/2.x/docs/action.html
Documentation can be found here:
 
Hope this helps,
Zak



----- Original Message ----
From: Eric Nelson <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Tuesday, September 30, 2008 11:42:45 AM
Subject: 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:



<[EMAIL PROTECTED] import="simplifile.web.action.ScheduleTransactionAction"%>

<[EMAIL PROTECTED] import="net.sourceforge.stripes.action.ForwardResolution"%>

<[EMAIL PROTECTED]
import="simplifile.quail.*,java.util.*,java.text.*,simplifile.search.*,s
implifile.net.*,simplifile.ach.*" errorPage="../error.jsp"%>[EMAIL PROTECTED]
file="../html/nocache.html"%
<mailto:[EMAIL PROTECTED]/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

taglibprefix="s"uri="/struts-tags"%>


      

Reply via email to