]
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
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 attribu
ActionA ===calling===>ActionB
In the forward attribute of actionmapping of ActionA specify the action path of ActionB
hth
-Ramadoss
-Original Message-
From: Vanessa Monteiro [mailto:[EMAIL PROTECTED]
> 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
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:
SiteĀ
Web
If "false".equalsIgnoreCase( isLocal ) then my
actionMapping.findForward( "gogoGoogleSearch" ) is envoked.
This is where I g
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
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 defa
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
>
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
"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.
On 11/17/2003 12:11:37 PM Adam Hardy wrote:
> Sorry, I meant post
For this application, the user must be logged in before hitting any pages,
so I needed to only cover cases for when the user types in a URL from
outside the application. I didn't give that a thought, so I perhaps this
isn't too he
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,
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 th
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 StringBuffer(reque
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 (request.getQue
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, sa
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> This might be more involved than you may think. The easy answer is to extend
> the RequestProcessor and add this functionality there. The hard answer is
> that you may not want to enable a user to just jump to any given page, only
> havin
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. Unfortun
You could do that... or you could do it the J2EE way, decleratively
without any coding, letting container do it that way:
Ex in web.xml:
Secure
/do/loginPg/*
/do/newsBlgCmntAddPg/*
/do/userChngPg/*
VALID
ENHANCED
This might be more involved than you may think. The easy answer is to extend
the RequestProcessor and add this functionality there. The hard answer is
that you may not want to enable a user to just jump to any given page, only
having to go through a login step to get there. You may very well need
s
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 curren
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 in
s all.
--
Alexandre Jaquet
- Original Message -
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 questio
ch 06, 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
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 be
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:
: 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
-
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:
http://sslext.sou
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
H
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
5)246-7145
e-mail: [EMAIL PROTECTED]
To:
[EMAIL PROTECTED]
"Donald Ball"cc: (bcc: Will
Spies/Towers Perrin)
<[EMAIL PROTECTE
To:
[EMAIL PROTECTED]
"Donald Ball"cc: (bcc: Will Spies/Towers
Perrin)
<[EMAIL PROTECTED] Subject: Re: Re
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
tp://domain.com/webapp2/somepage.jsp
Is this correct?
- Original Message -
From: "Donald Ball" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:10 AM
Subject: Re: Redirecting to a relative URL from root
> On 9/12/2002 at 11:01 AM Mi
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
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
-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 to login page when session expires
>
> Hi Ton
IL PROTECTED]]On
Behalf Of Jim Crossley
Sent: Sunday, March 17, 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 redi
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 shou
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 Message--
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
<
http://www.mail-archive.com/struts-dev@jakarta.apache.org/m
41 matches
Mail list logo