redirection - please help

2003-10-25 Thread ajay brar
hi!
is it possible for me to redirect users to an external site from inside an 
action class.
ie, say a user clicks /foo, this calls FooAction which does some intial 
processing. I now want to redirect the user to some other site. how can i do 
that?
do i write the link out into the response stream?

thanks
cheers
Ajay
_
E-mail just got a whole lot better. New ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp

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


Re: redirection - please help

2003-10-25 Thread Ruth, Brice
You'll want to issue a Location: URI to relocate to\n\n header to 
the response stream, that should do the trick.

ajay brar wrote:

hi!
is it possible for me to redirect users to an external site from 
inside an action class.
ie, say a user clicks /foo, this calls FooAction which does some 
intial processing. I now want to redirect the user to some other site. 
how can i do that?
do i write the link out into the response stream?

thanks
cheers
Ajay
_
E-mail just got a whole lot better. New ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.


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


Re: redirection - please help

2003-10-25 Thread Max Cooper
You can use HttpServletResponse.sendRedirect(): http://tinyurl.com/sdgg

Or, and I'm not sure if this works or not, you could have a forward in your
action mapping like this:

forward path=http://othersite.com/; redirect=true/

-Max

- Original Message - 
From: ajay brar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 25, 2003 6:39 AM
Subject: redirection - please help


 hi!
 is it possible for me to redirect users to an external site from inside an
 action class.
 ie, say a user clicks /foo, this calls FooAction which does some intial
 processing. I now want to redirect the user to some other site. how can i
do
 that?
 do i write the link out into the response stream?

 thanks
 cheers
 Ajay

 _
 E-mail just got a whole lot better. New ninemsn Premium. Click here
 http://ninemsn.com.au/premium/landing.asp


 -
 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]



Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
Hi,
We are doing a portal in which we have a News Channel in the pages across the 
site. 
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked and 
display the top 10 records.

For better control i have wrote a wrapper to the struts action in which 
perform method is implemented by having my own abstract method. for more control i 
have created postPerform and prePerform event methods which gets executed before 
perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the form data 
in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t go to the 
action level and bombs. right now we did most of our validation are done in form with 
input attirbute point to action element which is wrong 

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

RE: Struts redirection problem

2003-06-05 Thread Andrew Hill
Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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



RE: Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
in the problem statement i have mentioned that we are doing that but its not the right 
way to do as per my assumption.
because do the formvalidation if its invalid instead of going to the action.perform 
redirect to jsp directly
is the struts thumb rule and design. 

Ideally is it good to over look that and 
hypotheically if the user knows that action then get the view without doing form 
validation.. i don't think struts will allow this even thought its a good work around.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:13 PM
To: Struts Users Mailing List
Subject: RE: Struts redirection problem


Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

RE: Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)
The doubt is can implement portal channel kind of behivour where in channels are 
dropped in my dynamic contents
and in the content area requalr CRUD operation will be followed.

-Original Message-
From: J, Sadhasivam (Cognizant) 
Sent: Wednesday, June 04, 2003 9:22 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Struts redirection problem


in the problem statement i have mentioned that we are doing that but its not the right 
way to do as per my assumption.
because do the formvalidation if its invalid instead of going to the action.perform 
redirect to jsp directly
is the struts thumb rule and design. 

Ideally is it good to over look that and 
hypotheically if the user knows that action then get the view without doing form 
validation.. i don't think struts will allow this even thought its a good work around.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:13 PM
To: Struts Users Mailing List
Subject: RE: Struts redirection problem


Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


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

FW: Struts redirection problem

2003-06-05 Thread J, Sadhasivam (Cognizant)


-Original Message-
From: J, Sadhasivam (Cognizant) 
Sent: Wednesday, June 04, 2003 10:25 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Struts redirection problem


The doubt is can implement portal channel kind of behivour where in channels are 
dropped in my dynamic contents
and in the content area requalr CRUD operation will be followed.

-Original Message-
From: J, Sadhasivam (Cognizant) 
Sent: Wednesday, June 04, 2003 9:22 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Struts redirection problem


in the problem statement i have mentioned that we are doing that but its not the right 
way to do as per my assumption.
because do the formvalidation if its invalid instead of going to the action.perform 
redirect to jsp directly
is the struts thumb rule and design. 

Ideally is it good to over look that and 
hypotheically if the user knows that action then get the view without doing form 
validation.. i don't think struts will allow this even thought its a good work around.



-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 9:13 PM
To: Struts Users Mailing List
Subject: RE: Struts redirection problem


Make the input attribute in the mapping point at the action (the one it goes
through before forwarding to that view if its different).


-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 4 June 2003 23:38
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Struts redirection problem


Hi,
We are doing a portal in which we have a News Channel in the pages across
the site.
assume its just a corner html display area in the Site which frameless site.
with respect to site updation and new arrivals this content should be picked
and display the top 10 records.

For better control i have wrote a wrapper to the struts action in which
perform method is implemented by having my own abstract method. for more
control i have created postPerform and prePerform event methods which gets
executed before perform.

  Problem statement:
Since news item should be executed each and every page.
  i have hooked the News Action to postPerform or prePerform and set the
form data in request scope. The problem is
when there is form validation and input attribute is jsp the control won;t
go to the action level and bombs. right now we did most of our validation
are done in form with input attirbute point to action element which is wrong

Is there any way to implement a channel kind of portal behivour in struts ??

Thx in advance
sadhasivam.j


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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL 
PROTECTED]|ŸŠW¬¶¶§²h­µçpŠØbµªÞ~Ší…ë(•ë¬z‡í…觵éÝyÚÞr*bz{ljwfk'(žÖ¢Ê'~'^žØš•©Ý¦¸¯ŠW yا~Šæjبœ‡ò¢æ«zz-¶¢ž×§uçkyÈ©‰éí¦Wš±ç(žÖœ¶Ø^±éÝz¶ò­êeÉ隊V§u׬¶º2jY\¢˜ž²‡í…ê+Š§jYž²Æ x
òºv®¶+ŠÇ­ëâ{¬yجrZ,º·ŠËš)Ú¶*'~Šðj·bž
kŠ{bž
+rŠrŠx(~Øb±éšŠZ+j|šrبžÖ¤zx§­ébjw¢{aŠÇ¦j)b²Ëk‰Ëeʚè†âµçZÙšÉ·®žV°~éUŠÈ­ºÆ­†Ûiÿü0ÁÊ 
ž,ڞ×(-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Problem with forward redirection

2002-04-30 Thread lindsay . hamoudi

Hi,

I've been using struts for a while now (by my standards).

I prefer for all of my forwards to redirect - for two reasons:

1)  Because it keeps the browser's location bar up-to-date;

2)  To stop one action (accidentally) processing request parameters
intended for a previous action.  

For example, I tend to use a cancel parameter, in my forms or pages, to
indicate (to the action) that the user wishes to go back up a level.  If I
did not redirect, then this cancel parameter would still be there when the
request reaches this upper level action (causing it too to go back up a
level... and so on.).

This all worked fine, until I reached this dilemma:

I have an Action class called ControlAction which handles all actions
related to control (of a hypothetical software agent).
It handles the following actions (extension mapping is /app/*):

/app/control(top-level action that displays a page from which user can
choose a sub-action)
/app/control/viewResources  (sub-action which displays another page and
returns to above action when user hits cancel)
... more sub-actions

But all of these actions require a request parameter, agentName, to be
present.  This is a problem because when the 
/app/control/viewResources action forwards to /app/control - this parameter
is lost in the redirection.  

So is there any way to append a parameter to the ActionForward object?  In a
similar way to the tag html:rewrite forward=nameOfForward paramId=id
paramValue=value/

Any help is much appreciated. 

Cheers.

Lindsay

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




RE: redirection from an action/ refreshing page

2002-03-07 Thread Yu, Yanhui

Hi, 

I am new to Struts, and so my question maybe too simple:  Please help.

I notice redirect is used often, does that mean I have to put things in
session instead of request?  If it is true, can I use redirect=false
(assuming this way I am using forward instead of sendRedirect?) so I can put
more things in the request?

Thanks for any help,
Yanhui





-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 4:30 PM
To: Struts Users Mailing List
Subject: Re: redirection from an action/ refreshing page


Use:

forward name=success path=/successpage.jsp redirect=true /



[EMAIL PROTECTED] wrote:

 addendum to question.  I meant to write that we do

 return mapping.findForward(success);

 not

 return new ActionForward(mapping.findFoward(success));

 that was a typo

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: redirection from an action/ refreshing page

 After we have finished handling the form in our action, we forward the
 request on to the next page using

 return new ActionForward(mapping.findForward(success));

 where success is defined in the action in struts-config.xml using
   forward name=success path=/successpage.jsp/

 However, after the page has been forwarded, the URL displayed in the web
 browser address page is the path to the previous action.  Namely

 path to webapplication/Save.do

 even though we are on the successpage.jsp.

 If this page is refreshed (using IE 5.5, haven't tried it on other
 browsers), it prompts me for whether I want to resubmit the form.
However,
 there is no form on the successpage.jsp.

 So, I am wondering, does anyone know how to prevent this from happening?

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

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

--
~~Mark Woon~~~
God put me on this Earth to accomplish a certain number of things.
Right now, I am so far behind I shall never die.



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




RE: redirection from an action/ refreshing page

2002-03-07 Thread Robert Nocera

You can use redirect=false to make it a forward, which is what you
want most of the time.  I believe that false is the default value.

Robert Nocera
New England Open Solutions
www.neosllc.com
You supply the vision, we'll do the rest.
 

-Original Message-
From: Yu, Yanhui [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 07, 2002 1:58 PM
To: Struts Users Mailing List
Subject: RE: redirection from an action/ refreshing page

Hi, 

I am new to Struts, and so my question maybe too simple:  Please help.

I notice redirect is used often, does that mean I have to put things in
session instead of request?  If it is true, can I use redirect=false
(assuming this way I am using forward instead of sendRedirect?) so I can
put
more things in the request?

Thanks for any help,
Yanhui





-Original Message-
From: Mark Woon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 4:30 PM
To: Struts Users Mailing List
Subject: Re: redirection from an action/ refreshing page


Use:

forward name=success path=/successpage.jsp redirect=true /



[EMAIL PROTECTED] wrote:

 addendum to question.  I meant to write that we do

 return mapping.findForward(success);

 not

 return new ActionForward(mapping.findFoward(success));

 that was a typo

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: redirection from an action/ refreshing page

 After we have finished handling the form in our action, we forward the
 request on to the next page using

 return new ActionForward(mapping.findForward(success));

 where success is defined in the action in struts-config.xml using
   forward name=success
path=/successpage.jsp/

 However, after the page has been forwarded, the URL displayed in the
web
 browser address page is the path to the previous action.  Namely

 path to webapplication/Save.do

 even though we are on the successpage.jsp.

 If this page is refreshed (using IE 5.5, haven't tried it on other
 browsers), it prompts me for whether I want to resubmit the form.
However,
 there is no form on the successpage.jsp.

 So, I am wondering, does anyone know how to prevent this from
happening?

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

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

--
~~Mark Woon~~~
God put me on this Earth to accomplish a certain number of things.
Right now, I am so far behind I shall never die.



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


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




redirection from an action/ refreshing page

2002-03-05 Thread saval


After we have finished handling the form in our action, we forward the
request on to the next page using

return new ActionForward(mapping.findForward(success));

where success is defined in the action in struts-config.xml using
  forward name=success path=/successpage.jsp/

However, after the page has been forwarded, the URL displayed in the web
browser address page is the path to the previous action.  Namely

path to webapplication/Save.do

even though we are on the successpage.jsp.

If this page is refreshed (using IE 5.5, haven't tried it on other
browsers), it prompts me for whether I want to resubmit the form.  However,
there is no form on the successpage.jsp.

So, I am wondering, does anyone know how to prevent this from happening?

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




RE: redirection from an action/ refreshing page

2002-03-05 Thread saval

addendum to question.  I meant to write that we do

return mapping.findForward(success);

not

return new ActionForward(mapping.findFoward(success));

that was a typo

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: redirection from an action/ refreshing page



After we have finished handling the form in our action, we forward the
request on to the next page using

return new ActionForward(mapping.findForward(success));

where success is defined in the action in struts-config.xml using
  forward name=success path=/successpage.jsp/

However, after the page has been forwarded, the URL displayed in the web
browser address page is the path to the previous action.  Namely

path to webapplication/Save.do

even though we are on the successpage.jsp.

If this page is refreshed (using IE 5.5, haven't tried it on other
browsers), it prompts me for whether I want to resubmit the form.  However,
there is no form on the successpage.jsp.

So, I am wondering, does anyone know how to prevent this from happening?

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

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




Re: redirection from an action/ refreshing page

2002-03-05 Thread Mark Woon

Use:

forward name=success path=/successpage.jsp redirect=true /



[EMAIL PROTECTED] wrote:

 addendum to question.  I meant to write that we do

 return mapping.findForward(success);

 not

 return new ActionForward(mapping.findFoward(success));

 that was a typo

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 05, 2002 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: redirection from an action/ refreshing page

 After we have finished handling the form in our action, we forward the
 request on to the next page using

 return new ActionForward(mapping.findForward(success));

 where success is defined in the action in struts-config.xml using
   forward name=success path=/successpage.jsp/

 However, after the page has been forwarded, the URL displayed in the web
 browser address page is the path to the previous action.  Namely

 path to webapplication/Save.do

 even though we are on the successpage.jsp.

 If this page is refreshed (using IE 5.5, haven't tried it on other
 browsers), it prompts me for whether I want to resubmit the form.  However,
 there is no form on the successpage.jsp.

 So, I am wondering, does anyone know how to prevent this from happening?

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

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

--
~~Mark Woon~~~
God put me on this Earth to accomplish a certain number of things.
Right now, I am so far behind I shall never die.





Redirection

2001-12-18 Thread aneesha . singh

Hi all

This is not really related to Struts, but I would really appreciate some
help on this .. I need to call a URL from a normal helper java class within
my web controller.
I tried using RequestDispatcher.forward .. but to no avail ...
Any ideas??

Thanks
Aneesha



This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. If by an addressing or transmission error this mail has 
been misdirected to you, you are requested to delete this mail immediately. You are 
also hereby notified that any use, any form of reproduction, dissemination, copying, 
disclosure, modification, distribution and/or publication of this e-mail message, 
contents or its attachment other than by its intended recipient/s is strictly 
prohibited.



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


RE: Redirection

2001-12-18 Thread Ramesh Kannery

try urlconnection class

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 4:26 PM
To: [EMAIL PROTECTED]
Subject: Redirection


Hi all

This is not really related to Struts, but I would really appreciate some
help on this .. I need to call a URL from a normal helper java class
within
my web controller.
I tried using RequestDispatcher.forward .. but to no avail ...
Any ideas??

Thanks
Aneesha


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




Problem with Redirection

2001-12-11 Thread Alvin Kutttikkat Antony

Hello friends,
I have a problem redirection 
Some part of our project they are not using Struts but they have to use the Login.do 
for validation what happens then after a successfull login it redirects to
http://webinfo2.campus.lmu.de/timetabletab.jsp;LMUJavaSession=1372801008162065234?collectionID=7
this URL 
and the semicolon after the.jsp is not parsing and it pops an error
/timetabletab.jsp;LMUJavaSession=3424421008169744617:

allaire.jrun.JRunServletException: not found
How can I solve this 

More over we are not using this session ID
for validation, we are are using cookies, any way to turn off appending this 
LMUJAVASession parameter on the response?
 
Any help would be appreciated
Alvin 



alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980



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




Fw: redirection

2001-11-03 Thread Mailsweeper


- Original Message -
From: Andrew Kirkland [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 4:01 AM
Subject: RE: redirection


 Whenever I write a struts application and try to do anything
  involving an action mapping, my browser is simply redirected to the
 corresponding *.do file! Can someone tell me whats wrong? Im using tomcat
 3.3.

 This is the example I have been following :
 http://www.jspinsider.com/tutorials/jsp/struts/lesson1/l1b_struts.view#top

 however, I have tried several examples including pre-coded downloads and
 ones ive done myself all with the same problem.

 Ive rechecked the instructions for installing struts several times and
 cannot see a problem.

 Thanks for your help

 Andy



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

 .



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




redirection

2001-10-31 Thread Andrew Kirkland

Whenever I write a struts application and try to do anything involving an
action mapping, my browser is simply redirected to the corresponding *.do
file! Can someone tell me whats wrong? Im using tomcat 3.3.

Thanks
 Andy


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




RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)

Maybe you should show us some code ... Be honest: do you think anybody
can answer this without more information?

I'd be glad to help, but you'll have to put some effort in asking the
question.


tomK


 -Original Message-
 From: Andrew Kirkland [mailto:[EMAIL PROTECTED]] 
 Sent: woensdag 31 oktober 2001 10:22
 To: [EMAIL PROTECTED]
 Subject: redirection
 
 
 Whenever I write a struts application and try to do anything 
 involving an
 action mapping, my browser is simply redirected to the 
 corresponding *.do
 file! Can someone tell me whats wrong? Im using tomcat 3.3.
 
 Thanks
  Andy
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: redirection

2001-10-31 Thread Andrew Kirkland

Whenever I write a struts application and try to do anything
 involving an action mapping, my browser is simply redirected to the
corresponding *.do file! Can someone tell me whats wrong? Im using tomcat
3.3.

This is the example I have been following :
http://www.jspinsider.com/tutorials/jsp/struts/lesson1/l1b_struts.view#top

however, I have tried several examples including pre-coded downloads and
ones ive done myself all with the same problem.

Ive rechecked the instructions for installing struts several times and
cannot see a problem.

Thanks for your help

Andy



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




Re: redirection

2001-10-31 Thread Gregor Rayman

Andrew Kirkland [EMAIL PROTECTED] wrote:


 Whenever I write a struts application and try to do anything involving an
 action mapping, my browser is simply redirected to the corresponding *.do
 file! Can someone tell me whats wrong? Im using tomcat 3.3.

What is a *.do file?

--
gR



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




RE: redirection

2001-10-31 Thread Andrew Kirkland

A .do file is the file extention that i have used for mapping purposes.

I have this in my jsp : html:form action=lesson1/logon.do focus=user

and then web.xml redirects it and it should then be processed by my java
file etc.

However I am simply redirected in my browser to logon.do which doesnt exist!

Andy

-Original Message-
From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:12 AM
To: Struts Users Mailing List
Subject: Re: redirection


Andrew Kirkland [EMAIL PROTECTED] wrote:


 Whenever I write a struts application and try to do anything involving an
 action mapping, my browser is simply redirected to the corresponding *.do
 file! Can someone tell me whats wrong? Im using tomcat 3.3.

What is a *.do file?

--
gR



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


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




RE: redirection

2001-10-31 Thread Andreas Mack

On Wed, 2001-10-31 at 11:08, Andrew Kirkland wrote:
 A .do file is the file extention that i have used for mapping purposes.
 
 I have this in my jsp : html:form action=lesson1/logon.do focus=user
 
 and then web.xml redirects it and it should then be processed by my java
 file etc.
 
 However I am simply redirected in my browser to logon.do which doesnt exist!

Struts routes the login.do to the action with the corresponding path,
in this case logon. Then the Action is executed. Based on the return
value mapping.findForward(xxx), the forward with that xxx name of
this action will be called. All this is configured in struts-config.xml.

actionpath=/logon
   type=com.mypackage.struts.LoginAction
   name=loginForm
   scope=request
  forward name=xxx  path=/dothis.jsp/
  forward name=xy  path=/dothat.jsp/
/action




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




Re: redirection

2001-10-31 Thread Scott Atwell

Have you configured struts-config.xml properly to recognise logon.do?

Have you tested that struts is properly installed and is working properly?

Regards,
Scott
- Original Message -
From: Andrew Kirkland [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 10:08 AM
Subject: RE: redirection


 A .do file is the file extention that i have used for mapping purposes.

 I have this in my jsp : html:form action=lesson1/logon.do focus=user

 and then web.xml redirects it and it should then be processed by my java
 file etc.

 However I am simply redirected in my browser to logon.do which doesnt
exist!

 Andy

 -Original Message-
 From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 31, 2001 10:12 AM
 To: Struts Users Mailing List
 Subject: Re: redirection


 Andrew Kirkland [EMAIL PROTECTED] wrote:


  Whenever I write a struts application and try to do anything involving
an
  action mapping, my browser is simply redirected to the corresponding
*.do
  file! Can someone tell me whats wrong? Im using tomcat 3.3.

 What is a *.do file?

 --
 gR



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


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



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




RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

You configure that in the web.xml deployment descriptor file!

You MAP the actions and actionForwards in the struts-config.xml, but you must
map the path or extension modes in the web.xml file! In your case:

  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

(extracted from example application web.xml)

Wellington L.S. da Silva
UN/FAO

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:24 AM
To: Struts Users Mailing List
Subject: Re: redirection


Have you configured struts-config.xml properly to recognise logon.do?

Have you tested that struts is properly installed and is working properly?

Regards,
Scott
- Original Message -
From: Andrew Kirkland [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, October 31, 2001 10:08 AM
Subject: RE: redirection


 A .do file is the file extention that i have used for mapping purposes.

 I have this in my jsp : html:form action=lesson1/logon.do focus=user

 and then web.xml redirects it and it should then be processed by my java
 file etc.

 However I am simply redirected in my browser to logon.do which doesnt
exist!

 Andy

 -Original Message-
 From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 31, 2001 10:12 AM
 To: Struts Users Mailing List
 Subject: Re: redirection


 Andrew Kirkland [EMAIL PROTECTED] wrote:


  Whenever I write a struts application and try to do anything involving
an
  action mapping, my browser is simply redirected to the corresponding
*.do
  file! Can someone tell me whats wrong? Im using tomcat 3.3.

 What is a *.do file?

 --
 gR



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


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



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


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




Re: redirection

2001-10-31 Thread Gregor Rayman

Andrew Kirkland [EMAIL PROTECTED] wrote:

 I have this in my jsp : html:form action=lesson1/logon.do focus=user

 and then web.xml redirects it and it should then be processed by my java
 file etc.

 However I am simply redirected in my browser to logon.do which doesnt
exist!

 Andy

OK, so there actually is NO file logon.do (which is correct). I suppose the
problem might be that in html:form the attribute action should contain
only the name of the action and not the name of the mapping. So try
action=lesson1/logon instead on lesson1/logon.do

--
gR


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




RE: redirection

2001-10-31 Thread Tom Klaasen (TeleRelay)

That could be the problem indeed.

From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

 -Original Message-
 From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
 Sent: woensdag 31 oktober 2001 11:27
 To: 'Struts Users Mailing List'
 Subject: RE: redirection
 Importance: High
 
 
 You configure that in the web.xml deployment descriptor file!
 
 You MAP the actions and actionForwards in the 
 struts-config.xml, but you must
 map the path or extension modes in the web.xml file! In your case:
 
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping
 
 (extracted from example application web.xml)
 
 Wellington L.S. da Silva
 UN/FAO
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 31, 2001 11:24 AM
 To: Struts Users Mailing List
 Subject: Re: redirection
 
 
 Have you configured struts-config.xml properly to recognise logon.do?
 
 Have you tested that struts is properly installed and is 
 working properly?
 
 Regards,
 Scott
 - Original Message -
 From: Andrew Kirkland [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 31, 2001 10:08 AM
 Subject: RE: redirection
 
 
  A .do file is the file extention that i have used for 
 mapping purposes.
 
  I have this in my jsp : html:form 
 action=lesson1/logon.do focus=user
 
  and then web.xml redirects it and it should then be 
 processed by my java
  file etc.
 
  However I am simply redirected in my browser to logon.do 
 which doesnt
 exist!
 
  Andy
 
  -Original Message-
  From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 10:12 AM
  To: Struts Users Mailing List
  Subject: Re: redirection
 
 
  Andrew Kirkland [EMAIL PROTECTED] wrote:
 
 
   Whenever I write a struts application and try to do 
 anything involving
 an
   action mapping, my browser is simply redirected to the 
 corresponding
 *.do
   file! Can someone tell me whats wrong? Im using tomcat 3.3.
 
  What is a *.do file?
 
  --
  gR
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Re: redirection

2001-10-31 Thread Ted Husted

The better syntax in your html:form would be 

html:form action=/lesson1/logon focus=user

where there is something like this in your struts-config.xml

action 
path=/lesson1/logon
type=${whatever}
name=${whatever}
/action

If this is in place, then there must be something wrong with your
installation of Tomcat or your web.xml. 

A setup like this in your application's web.xml 

  !-- Standard Action Servlet Configuration --
  servlet
servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
.../
load-on-startup2/load-on-startup
  /servlet

  !-- Standard Action Servlet Mapping --
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping

tells the container to foward the *.do requests to the Struts
ActionServlet. If it doesn't, then your container is broken.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


Andrew Kirkland wrote:
 
 A .do file is the file extention that i have used for mapping purposes.
 
 I have this in my jsp : html:form action=lesson1/logon.do focus=user
 
 and then web.xml redirects it and it should then be processed by my java
 file etc.
 
 However I am simply redirected in my browser to logon.do which doesnt exist!
 
 Andy


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




RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

In JspInsider the web.xml file is created FROM a blank.war file, which I
guess is preset for the tutorial. So, it's not the case to say it is wrong.

But if you aren't using blank.war as the base for your web.xml file and is
trying to set it from scratch, you must set this mapping to the Action
Servlet indeed.

Wellington L.S. da Silva
UN/FAO


-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:33 AM
To: Struts Users Mailing List
Subject: RE: redirection


That could be the problem indeed.

From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

 -Original Message-
 From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
 Sent: woensdag 31 oktober 2001 11:27
 To: 'Struts Users Mailing List'
 Subject: RE: redirection
 Importance: High
 
 
 You configure that in the web.xml deployment descriptor file!
 
 You MAP the actions and actionForwards in the 
 struts-config.xml, but you must
 map the path or extension modes in the web.xml file! In your case:
 
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping
 
 (extracted from example application web.xml)
 
 Wellington L.S. da Silva
 UN/FAO
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 31, 2001 11:24 AM
 To: Struts Users Mailing List
 Subject: Re: redirection
 
 
 Have you configured struts-config.xml properly to recognise logon.do?
 
 Have you tested that struts is properly installed and is 
 working properly?
 
 Regards,
 Scott
 - Original Message -
 From: Andrew Kirkland [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 31, 2001 10:08 AM
 Subject: RE: redirection
 
 
  A .do file is the file extention that i have used for 
 mapping purposes.
 
  I have this in my jsp : html:form 
 action=lesson1/logon.do focus=user
 
  and then web.xml redirects it and it should then be 
 processed by my java
  file etc.
 
  However I am simply redirected in my browser to logon.do 
 which doesnt
 exist!
 
  Andy
 
  -Original Message-
  From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 10:12 AM
  To: Struts Users Mailing List
  Subject: Re: redirection
 
 
  Andrew Kirkland [EMAIL PROTECTED] wrote:
 
 
   Whenever I write a struts application and try to do 
 anything involving
 an
   action mapping, my browser is simply redirected to the 
 corresponding
 *.do
   file! Can someone tell me whats wrong? Im using tomcat 3.3.
 
  What is a *.do file?
 
  --
  gR
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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


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




RE: redirection

2001-10-31 Thread Lacerda, Wellington (AFIS)

Sorry :-) I mean using THE web.xml FILE IN blank.war as the base... 

Wellington

-Original Message-
From: Lacerda, Wellington (AFIS) 
Sent: Wednesday, October 31, 2001 11:37 AM
To: 'Struts Users Mailing List'
Subject: RE: redirection
Importance: High


In JspInsider the web.xml file is created FROM a blank.war file, which I
guess is preset for the tutorial. So, it's not the case to say it is wrong.

But if you aren't using blank.war as the base for your web.xml file and is
trying to set it from scratch, you must set this mapping to the Action
Servlet indeed.

Wellington L.S. da Silva
UN/FAO


-Original Message-
From: Tom Klaasen (TeleRelay) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 11:33 AM
To: Struts Users Mailing List
Subject: RE: redirection


That could be the problem indeed.

From the jspinsider url:
'No changes are required within the Web.xml file.'

This is wrong, as you mentioned.

So Andrew, I'd flame jspinsider ;-)

tomK

 -Original Message-
 From: Lacerda, Wellington (AFIS) [mailto:[EMAIL PROTECTED]] 
 Sent: woensdag 31 oktober 2001 11:27
 To: 'Struts Users Mailing List'
 Subject: RE: redirection
 Importance: High
 
 
 You configure that in the web.xml deployment descriptor file!
 
 You MAP the actions and actionForwards in the 
 struts-config.xml, but you must
 map the path or extension modes in the web.xml file! In your case:
 
   servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
   /servlet-mapping
 
 (extracted from example application web.xml)
 
 Wellington L.S. da Silva
 UN/FAO
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 31, 2001 11:24 AM
 To: Struts Users Mailing List
 Subject: Re: redirection
 
 
 Have you configured struts-config.xml properly to recognise logon.do?
 
 Have you tested that struts is properly installed and is 
 working properly?
 
 Regards,
 Scott
 - Original Message -
 From: Andrew Kirkland [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, October 31, 2001 10:08 AM
 Subject: RE: redirection
 
 
  A .do file is the file extention that i have used for 
 mapping purposes.
 
  I have this in my jsp : html:form 
 action=lesson1/logon.do focus=user
 
  and then web.xml redirects it and it should then be 
 processed by my java
  file etc.
 
  However I am simply redirected in my browser to logon.do 
 which doesnt
 exist!
 
  Andy
 
  -Original Message-
  From: Gregor Rayman [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, October 31, 2001 10:12 AM
  To: Struts Users Mailing List
  Subject: Re: redirection
 
 
  Andrew Kirkland [EMAIL PROTECTED] wrote:
 
 
   Whenever I write a struts application and try to do 
 anything involving
 an
   action mapping, my browser is simply redirected to the 
 corresponding
 *.do
   file! Can someone tell me whats wrong? Im using tomcat 3.3.
 
  What is a *.do file?
 
  --
  gR
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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


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


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




html:errors and redirection

2001-10-22 Thread Heijink, Dick



Hi 
there,

We've 
been using struts for our projects and we've run into some problems with error 
reporting. We havethe following action:

public 
ActionForward perform(ActionMapping mapping,ActionForm form,HttpServletRequest 
request,HttpServletResponse response) {
 
ActionErrors errors=new ActionErrors();
 
...
 
saveErrors(request,errors);
 
return mapping.findForward("success")
}

The 
problem is that the "success" forward uses redirection. We have to do this, 
because Navigator doesn't allow you to view the source or to print a page that 
resulted from a POST whose data expires immediately. However, when the request 
is redirected, we loose the detected errors that were added to the POSTed 
request. The page for the redirected GET request will therefore not display any 
detected errors.

Any 
ideas? Are we doing something fundamentally wrong?

We've 
got a workaround with an alternative errors tag that fetches the errors from the 
session and not from the request, but this solution is not robust enough. We 
assume that the request that follows the POST request is the redirected request, 
but there is no way of knownig this for sure.

Thanks,

Dick 
Heijink


Re: html:errors and redirection

2001-10-22 Thread Matt Raible

This is a similar problem with iPlanet Application Server - where it doesn't
allow forwarding from one action to another.  The workaround for us was to
add redirect=true to the forward.

We have the same solution as you - adding messages to the session, and grabbing
them from the session.

Matt

--- Heijink, Dick [EMAIL PROTECTED] wrote:
 Hi there,
  
 We've been using struts for our projects and we've run into some problems
 with error reporting. We have the following action:
  
 public ActionForward perform(ActionMapping mapping,ActionForm
 form,HttpServletRequest request,HttpServletResponse response) {
   ActionErrors errors=new ActionErrors();
   ...
   saveErrors(request,errors);
   return mapping.findForward(success)
 }
  
 The problem is that the success forward uses redirection. We have to do
 this, because Navigator doesn't allow you to view the source or to print a
 page that resulted from a POST whose data expires immediately. However, when
 the request is redirected, we loose the detected errors that were added to
 the POSTed request. The page for the redirected GET request will therefore
 not display any detected errors.
  
 Any ideas? Are we doing something fundamentally wrong?
  
 We've got a workaround with an alternative errors tag that fetches the
 errors from the session and not from the request, but this solution is not
 robust enough. We assume that the request that follows the POST request is
 the redirected request, but there is no way of knownig this for sure.
  
 Thanks,
  
 Dick Heijink
 


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



redirection or forward ?

2001-05-18 Thread Michael Prader

Hi all

I had this problem about the redirection or forwarding to a page and
my pics didn't show up there.

Now it seems so, that this is a Websphere problem, because when I get
the ServletContext he doesn't bring the /  as context path. Instead it gets
back my Web folder I use /testapp.

Then I altered the code a slight bit to this:

 protected void processActionForward(ActionForward forward,
ActionMapping mapping,
ActionForm formInstance,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

if (forward != null) {
String path = forward.getPath();
if (forward.getRedirect()) {
if (path.startsWith(/))
path = request.getContextPath() + path;
response.sendRedirect(response.encodeRedirectURL(path));
} else {

/*RequestDispatcher rd =
getServletContext().getRequestDispatcher(path);
rd.forward(request, response);*/
response.sendRedirect(path);
}
}

}

Can anybody tell me if I'm wrong with that change ?

Regards

Mike






*** PLEASE NOTE ***
This message, along with any attachments, may be confidential or legally
privileged.  It is intended only for the named person(s), who is/are the
only authorized recipients. If this message has reached you in error,
kindly destroy it without review and notify the sender immediately. Thank
you for your help.
**






*** PLEASE NOTE ***
This message, along with any attachments, may be confidential or legally
privileged.  It is intended only for the named person(s), who is/are the
only authorized recipients. If this message has reached you in error,
kindly destroy it without review and notify the sender immediately. Thank
you for your help.
**