result "success" is used when I return null from my Action.
Is there a way to redirect action to an external URL?
-Original Message-
From: Chris Pratt [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 12:44 PM
To: Struts Users Mailing List
Subject: Re: dynamic forwa
This might work:
${newPage}
You might consider some sort of white list of internal resources that
can be accessed to prevent misuse.
Nils-H
On 9/7/07, Mirbek Nosinov <[EMAIL PROTECTED]> wrote:
> Is it possible to dynamicaly forward to any page from Action class execute()
> function. For example
> > Is it possible to dynamicaly forward to any page from Action class
> > execute()
Make your Action implement ServletResponseAware, then just use the
response.sendRedirect() method to redirect to where you want to go.
Then return null from your action to let Struts 2 know that you've
handled thi
Street
> Manchester
> M2 3LS
>
> -Original Message-
> From: Mirbek Nosinov [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 07, 2007 1:06 PM
> To: user@struts.apache.org
> Subject: dynamic forwarding from Action class to any url
>
> Is it possible to dynamicaly
Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From: Mirbek Nosinov [mailto:[EMAIL PROTECTED]
Sent: Friday, September 07, 2007 1:06 PM
To: user@struts.apache.org
Subject: dynamic
Is it possible to dynamicaly forward to any page from Action class execute()
function. For example i get next request:
/MyAction.action?newPage=AnotherAction.action
or
/MyAction.action?newPage=/pages/myJsp.jsp
or
/MyAction.action?newPage=www.com
and this newPage parameter can be any url (suppose
If you know where to forward, you can create a custom ActionForward in
runtime. ActionMapping.findForward() that everyone usually use, is
just a convenience method. You can create your own instance of
ActionForward class with whatever path and request method you like.
Don't change ActionForward ins
I am working on struts interface that will support a core set of functionality
upon which products can add functionality. Several products may be installed on
one system, all sharing the core functionality. The products that adopt the
core functionality cannot change it, they can only add to it
8 matches
Mail list logo