Dear All,
Elaborating my question :
Action Class : return mappin.findforward("abc");
Struts Config :
It takes me to xyz.jsp.But user specific data is never
swapped with any other user data.Only the actionForward object jumps to a
different place. So a case of swapping
Hi Laurie
I had used Request.dispatcher before but only in servlet code; didnt
know/realize I could do it in an Action. I see the key is to make that one of
the states that will always be called and just trick Struts with the return of
the null. I assume the technology is orthogonal enough tha
Hi Felipe
Thanks, that I got. My conceptual difficulty is I dont see how to define a
global forwards for the servlet and call it in my
request.mapping.FindForward("forwardToServlet"), or maybe it is brain-fade
Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
Preserver de session?
Session is already
The first question should be, do you really need the servlet? You could
generate the full response from the action. If you still need to keep
the servlet around for other uses, perhaps you can refactor the bulk of
its work into a service class that both the servlet and the action can
use to gen
Preserver de session?
Session is already preserved. Did you try that?
To get values from session in your servlet you must use Session ses =
request.getSession().
Than you have your session object. Parameters from request? You should use
request.getParameters().
To get Action fields, well I'm not s
> In this action i need to redirect the user to a new page.
> Does anybody know if and how can i do that ?
Response.sendRedirect? Forward with redirect='true'?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
For developers, I suggest looking into this proposed enhancement. Instead of
duplicating the path
again in the forward, you can forward to actions. Please vote for this if you
think it is
valuable; perhaps it will make it into future versions of 1.3 or 1.4.
http://issues.apache.org/bugzilla/show
Andrzej Bengner wrote:
[EMAIL PROTECTED] napisał(a):
In that case, when action mapping looks like this
(as you wrote in your mail before):
then you have to do the following at the end of your
action (after all work has been done):
return mapping.findForward( "ok" );
I do this, but
[EMAIL PROTECTED] napisał(a):
In that case, when action mapping looks like this
(as you wrote in your mail before):
then you have to do the following at the end of your
action (after all work has been done):
return mapping.findForward( "ok" );
I do this, but struts still forwarding
rsprüngliche Nachricht-
Von: Andrzej Bengner [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 12. Dezember 2005 10:37
An: Struts Users Mailing List
Betreff: Re: Action forward path
> The parameter attribute defines the target of your
> forward action, that is your jsp.
Thanks.
And what if I want t
The parameter attribute defines the target of your
forward action, that is your jsp.
Thanks.
And what if I want to execute my action (do something) and forward to
this path (/path/file.jsp or /path/MyAction.do)?
Regards
--
Andy
--
Hi!
If you only want your Action to forward to the jsp, and do
nothing else, use a ForwardAction like this:
The parameter attribute defines the target of your
forward action, that is your jsp.
Greetings
Peter
-
Hello,
I ha
ther its a redirecting forward or not).
-Original Message-
From: Harjot Narula [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 June 2004 20:04
To: Struts Users Mailing List
Subject: Re: Action Forward
Hi Brati
Well, as far as I can understand, you don't wanna use struts-config for yo
irect(response.encodeRedirectURL("/FetchNextPage.jsp"));
Try this and let me know
Hope this helps
Harjot
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 7:59 PM
Subject: RE: Action Forward
"Frank Zammetti"
<[EMAIL PROTECTED]>
06/08/2004 06:57 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
[EMAIL PROTECTED]
cc
Subject
RE: Action Forward
Cool, I didn't know that. Ignore my solutions
Brati! (I su
ply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: RE: Action Forward
Date: Tue, 8 Jun 2004 08:28:14 -0400
Yes.
return new ActionForward(path);
robert
-Original Message-
From: [EMAIL PROTE
I do not hink its possible.
U will have to make an entry in struts config .xml.
Something like this...if ur doing a simple forward. w/o any action class.
regds
shilpa
for ex -
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 4
Yes.
return new ActionForward(path);
robert
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 08, 2004 7:17 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Action Forward
Is it possible to forward to a page(ht
18 matches
Mail list logo