I don't know what ForwardResolution is, but if you need the
functionality of jsp:forward, why not use that?
L.
Eric Nelson wrote:
Thanks Zak. However, the s:action tag calls an action inline, and renders the
results on the same page. I'm looking to forward the request on, similar to
<jsp:forward/>. Does Struts have a class similar to ForwardResolution?
--Eric
-----Original Message-----
From: zakary melvin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2008 11:49 AM
To: Struts Users Mailing List
Subject: Re: Invoking Action Class from JSP
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"%>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]