RE: Cross web app communication

2004-12-12 Thread Robert Taylor
You cannot forward to another web application.
You can, however, redirect. You set the redirect 
attribute of the forward tag to true.

robert

 -Original Message-
 From: avinash_shirol [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, December 07, 2004 4:17 AM
 To: [EMAIL PROTECTED]
 Subject: Cross web app communication
 
 
 
 Hi,
 
 I have following questions
 
 1. I have two web applications deployed on different m/c. When I 
 login to one web application, I would like to view a page provided by 
 the other application. Basically, redirecting a user to a different 
 web application.
 
 Is this possible? If so, how?
 
 2. I tried to provide a http url(google url) with absolute path in 
 the forward tag of struts-config.xml. I kept getting error 
 message Request Dispatcher not found for http://www.google.com; in 
 spite of mentioning relativeLocation=false.
 Can't we give absolute pathnames in the path field in struts config?
 
 -Avinash
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cross web app communication

2004-12-12 Thread Dakota Jack
Out of interest, Robert, would you mind expanding on this if you have
more detailed observations that you could offer?  Thanks.

Jack




On Sun, 12 Dec 2004 09:45:13 -0500, Robert Taylor [EMAIL PROTECTED] wrote:
 You cannot forward to another web application.
 You can, however, redirect. You set the redirect
 attribute of the forward tag to true.
 
 robert
 
 
 
  -Original Message-
  From: avinash_shirol [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, December 07, 2004 4:17 AM
  To: [EMAIL PROTECTED]
  Subject: Cross web app communication
 
 
 
  Hi,
 
  I have following questions
 
  1. I have two web applications deployed on different m/c. When I
  login to one web application, I would like to view a page provided by
  the other application. Basically, redirecting a user to a different
  web application.
 
  Is this possible? If so, how?
 
  2. I tried to provide a http url(google url) with absolute path in
  the forward tag of struts-config.xml. I kept getting error
  message Request Dispatcher not found for http://www.google.com; in
  spite of mentioning relativeLocation=false.
  Can't we give absolute pathnames in the path field in struts config?
 
  -Avinash
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 


You can't wake a person who is pretending to be asleep.

~Native Proverb~

Each man is good in His sight. It is not necessary for eagles to be crows.

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cross web app communication

2004-12-12 Thread Robert Taylor
Not really an observation, but more of how the Servlet specification
constrains the use of forwarding to another resource.

Forwarding is accomplished by using the RequestDispatcher.forward().
You can access a RequestDispatcher by calling Request.getRequestDispatcher()
passing it the path name of a resource which is relative to the current
servlet context.

A redirect sends a status code back to the browser along with the url
to which you wish to be redirected. The url may be relative to the same
web app or a fully qualified url to a different resource.

When you set the redirect attribute of the forward tag to true, then
Struts will use Response.sendRedirect() to redirect the request to the
specified resource which could be the same web app or a different web app.


/robert

 -Original Message-
 From: Dakota Jack [mailto:[EMAIL PROTECTED]
 Sent: Sunday, December 12, 2004 2:02 PM
 To: Struts Users Mailing List
 Subject: Re: Cross web app communication
 
 
 Out of interest, Robert, would you mind expanding on this if you have
 more detailed observations that you could offer?  Thanks.
 
 Jack
 
 
 
 
 On Sun, 12 Dec 2004 09:45:13 -0500, Robert Taylor [EMAIL PROTECTED] wrote:
  You cannot forward to another web application.
  You can, however, redirect. You set the redirect
  attribute of the forward tag to true.
  
  robert
  
  
  
   -Original Message-
   From: avinash_shirol [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, December 07, 2004 4:17 AM
   To: [EMAIL PROTECTED]
   Subject: Cross web app communication
  
  
  
   Hi,
  
   I have following questions
  
   1. I have two web applications deployed on different m/c. When I
   login to one web application, I would like to view a page provided by
   the other application. Basically, redirecting a user to a different
   web application.
  
   Is this possible? If so, how?
  
   2. I tried to provide a http url(google url) with absolute path in
   the forward tag of struts-config.xml. I kept getting error
   message Request Dispatcher not found for http://www.google.com; in
   spite of mentioning relativeLocation=false.
   Can't we give absolute pathnames in the path field in struts config?
  
   -Avinash
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -- 
 
 
 You can't wake a person who is pretending to be asleep.
 
 ~Native Proverb~
 
 Each man is good in His sight. It is not necessary for eagles to be crows.
 
 ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]