ActionA ===calling===ActionB
In the forward attribute of actionmapping of ActionA specify the action path of ActionB
action name=actionAForm type=ActionA scope=request/session validate=true
input=xyz.do path=/A/do
forward name=callActionB path=/B/do redirect=true /
If I need to pass the method name to be executed in ActionB I can do it
using setAttributes, right?
_
Vanessa Monteiro
Analista de Sistemas
Quality Software
3475-3000 r:5062
[EMAIL PROTECTED] 17/03/2004 16:10:12
ActionA ===calling===ActionB
In the forward attribute of
]
Sent: Wednesday, March 17, 2004 2:18 PM
To: [EMAIL PROTECTED]
Subject: RE: redirecting to another action
If I need to pass the method name to be executed in ActionB I can do it
using setAttributes, right?
_
Vanessa Monteiro
Analista de Sistemas
Quality Software
3475-3000 r
Timothy Stone wrote:
List,
Struts noob.
I'm checking a form for a parameter that determines whether the user is
searching the web at large or the local site:
input type=radio name=isLocal value=true/Sitenbsp;
input type=radio name=isLocal value=false/Web
If false.equalsIgnoreCase( isLocal )
From: Timothy Stone [mailto:[EMAIL PROTECTED]
How do I do this? I think I'm looking for something similar to this,
which is what I'm most familiar with:
response.sendRedirect(http://www.google.com/search?q=; +
queryString);
I've never done this from an Action, but I *think* you can do
What you're likely running into is the fact that the cookie that the
application server uses to track a user's session object, is very
specific to what host can read the cookie.
I use Apache and one of the things I've done is set a configuration
parameter UseCanonicalName to be on - it
Quoting Fullam, Jonathan [EMAIL PROTECTED]:
All,
The application I am working on is secured with a login that required a
username and password. Once a user is logged in, all pages can be accessed
as long as there is a Subject object in the Session. My problem is that
part of the webapp
its redirect(true or false) attribute in actionforward tag
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 5:41 PM
To: struts
Subject: redirecting insead of forward.
Hi,
Is it possible to tell the controller that redirect to
next page
On 11/17/2003 05:29 AM Craig Edwards wrote:
To complete process X, the user has to perform 5 steps. The user can
perform steps 1, 2 and 3 with or without being logged on, but they must
be logged on to perform steps 4 and 5. Obviously, I can have a specific
check in step 4, but I would like,
I have been using the following for returning the user to their intended
URL after a login, and have had good luck with it ...
- In the Base Action class -
if (someCheckFor.loggedInUser() == null) {
StringBuffer goToPath = new StringBuffer(request.getServletPath());
if
On 11/17/2003 02:31 PM Susan Bradeen wrote:
I have been using the following for returning the user to their intended
URL after a login, and have had good luck with it ...
- In the Base Action class -
if (someCheckFor.loggedInUser() == null) {
StringBuffer goToPath = new
Just a note that ActionServlet only implements doGet and doPost so I imagine
you'll get some sort of method-not-supported error (inherited from HttpServlet)
if you send it a PUT request.
Quoting Adam Hardy [EMAIL PROTECTED]:
On 11/17/2003 02:31 PM Susan Bradeen wrote:
I have been using the
Sorry, I meant post
On 11/17/2003 05:58 PM Kris Schneider wrote:
Just a note that ActionServlet only implements doGet and doPost so I imagine
you'll get some sort of method-not-supported error (inherited from HttpServlet)
if you send it a PUT request.
Quoting Adam Hardy [EMAIL PROTECTED]:
Susan,
Craig Edwards [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
You could do that... or you could do it the J2EE way, decleratively
without any coding, letting container do it that way:
Thanks for the reply Vic. I can see how
In article [EMAIL PROTECTED], [EMAIL PROTECTED]
says...
As long as you have users that have passwords, and that might be in zero or
more roles, it should be relatively easy to write a realm implementation
that would access your custom user information repository. That would allow
you to make
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
You could do that... or you could do it the J2EE way, decleratively
without any coding, letting container do it that way:
Thanks for the reply Vic. I can see how that would be the way to go if
I were starting from scratch.
sendRedirect() is OK to use. Go ahead.
-Original Message-
From: ajay brar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: redirecting
hi!
i have to redirect the user from within my action class to an
external site.
i'm currently doing
Hey, thanks a lot. All now works.
Ilya
-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:48 PM
To: Struts Users Mailing List
Subject: Re: redirecting to HTTPS
The first thing you will need to do is to update the actionmapping type
definition
Have a look for SSLext. (you may find a sample
with it)
--
Alexandre Jaquet
- Original Message -
From: Sterin, Ilya [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:16 AM
Subject: redirecting to HTTPS
What's the easiest way to
Ah, great, just found it, but I can't find any examples to go with it,
nor a user's guide. Any links? :-)
Ilya
-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 7:37 PM
To: Struts Users Mailing List
Subject: Re: redirecting to HTTPS
Have a look
There are a number of issues involved that make it more complicated than it
should be (cookie domains, writing out all the links properly, etc.).
Fortunately, there is a project designed just for this purpose that extends
Struts to support relatively painless HTTP/HTTPS switching:
: Sterin, Ilya [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:42 PM
To: 'Struts Users Mailing List'
Subject: RE: redirecting to HTTPS
Ah, great, just found it, but I can't find any examples to go with it,
nor a user's guide. Any links? :-)
Ilya
-Original Message
It's came with it have a look of the web directory .
--
Alexandre Jaquet
- Original Message -
From: Sterin, Ilya [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:41 AM
Subject: RE: redirecting to HTTPS
Ah, great, just found it, but I
Great, thanks a bunch.
Ilya
-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 7:51 PM
To: Struts Users Mailing List
Subject: Re: redirecting to HTTPS
There are a number of issues involved that make it more complicated than
it should
, 2003 8:02 PM
To: 'Struts Users Mailing List'
Subject: RE: redirecting to HTTPS
There are examples with each of the different versions. (1.02, 1.1b1,
1.1b2
etc) at sslext.sourceforge.net.
I intend to do some updating for an 1.1RC1 release soon (this weekend?).
Also, I am usually able to answer
-
From: Sterin, Ilya [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 2:23 AM
Subject: RE: redirecting to HTTPS
Thanks, Steve. A quick question for you I guess, is going through the
examples, there is more to it then just adding the .jar file
by default the '/' root is from your webapp, as it should be. All URLs
should be from '/' that are going to the same webapp. If your going to
another webapp just do an http:// (Is this last sentence right?)
Don't use ../.. whatever you do! (not easily mutable)
Mike
- Original Message
On 9/12/2002 at 11:01 AM Michael Lee wrote:
by default the '/' root is from your webapp, as it should be. All URLs
should be from '/' that are going to the same webapp. If your going to
another webapp just do an http:// (Is this last sentence right?)
Don't use ../.. whatever you do! (not
On 9/12/2002 at 12:08 PM Michael Lee wrote:
Cool! Did not know that! I take it when you say that solution doesn't work
you just mean the one scentence..
I meant the suggested solution, namely that you use absolute URLs in your
struts-config.xml file when redirecting a user to another webapp on
PROTECTED]
Donald Ballcc: (bcc: Will Spies/Towers
Perrin)
[EMAIL PROTECTED]Subject: Re: Redirecting to a relative
URL from
PROTECTED]
To:
[EMAIL PROTECTED]
Donald Ballcc: (bcc: Will
Spies/Towers Perrin)
[EMAIL PROTECTED]Subject: Re: Redirecting
the template info. So my
question is how can I do an ActionForward from a .jsp?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jim Crossley
Sent: Sunday, March 17, 2002 7:46 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Redirecting
, 2002 7:46 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Redirecting to login page when session expires
Hi Tony.
Tony Li [EMAIL PROTECTED] writes:
What's the most elegant way of redirecting the user to the login page
after his session expires within struts?
Here's a simple
Hi Tony.
Tony Li [EMAIL PROTECTED] writes:
What's the most elegant way of redirecting the user to the login page
after his session expires within struts?
Here's a simple approach:
Override the ActionServlet's perform method to check the session for
something that your login action should've
I've had a similar problem.
See:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13730.html
If you need to pass anything on, you'll need to store in it hen session.
Unfortunately, I'm not working in a session, and haven't found a good way
around this.
- JKL
-Original
This is still a very messy area. I ended hardcoding some strings in a
production application, but there solutions that would mitigate this, so
you only have to hardcode the scheme in your struts-config file. See
To SSL and Back Again
36 matches
Mail list logo