Re: Struts forward and redirect

2006-07-24 Thread Antonio Petrelli
Michael Jouravlev ha scritto: On 7/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: A cookie cannot be put into path by definition of a cookie ;-) Automatically modifying redirect location may be undesirable, if redirect is used to control the growth of browser session history list by keep URL

Re: Struts forward and redirect

2006-07-21 Thread Michael Jouravlev
On 7/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: Jakub Milkiewicz ha scritto: > I really like Refirect after post patterny by Jouravlev where author > promotes saving submitted data in temporary storage (for example session) > and then use redirect to output action adding some kind of iden

Re: Struts forward and redirect

2006-07-20 Thread Antonio Petrelli
Jakub Milkiewicz ha scritto: I really like Refirect after post patterny by Jouravlev where author promotes saving submitted data in temporary storage (for example session) and then use redirect to output action adding some kind of identifier to data preivously saved in temporary storage. This w

Re: Struts forward and redirect

2006-07-20 Thread Michael Jouravlev
This is a valid technique. I want to comment on the user experience aspect of it. Say, that "/application.do" displays a form that a user has to fill out. He makes a mistake and you have to redisplay the form by calling "/application.do". Will the query paramter be the same? If not, then "/applic

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi I think storing these kind of date in a session is not great idea... I really like Refirect after post patterny by Jouravlev where author promotes saving submitted data in temporary storage (for example session) and then use redirect to output action adding some kind of identifier to data preiv

RE: Struts forward and redirect

2006-07-20 Thread Felix Khazin
I just found I can use ActionRedirect which solves all my problems: It allows me to redirect and add query string parameters! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 4:46 PM To: user@struts.apache.org Subject: RE: Struts forward

RE: Struts forward and redirect

2006-07-20 Thread Adam Gordon
-Original Message- From: Felix Khazin [mailto:[EMAIL PROTECTED] Sent: Thursday, 20 July 2006 13:47 To: user@struts.apache.org Subject: Struts forward and redirect Hi all, I have a quick question: My struts-config.xml has a forward line such as: In my controller if I set an attribute

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi If it is not still clear for you read: http://organicveggie.wordpress.com/2006/01/24/struts-redirect-wparameters/ 2006/7/20, Jakub Milkiewicz <[EMAIL PROTECTED]>: Hi It is quite easy thing... If you forward, request object is passed to "new resource" and if you redirect, server sends answer

Re: Struts forward and redirect

2006-07-20 Thread Jakub Milkiewicz
Hi It is quite easy thing... If you forward, request object is passed to "new resource" and if you redirect, server sends answer to browser to make a new request to new resource.In a latter, your request object on which you set some attributes is gone - "new resource" sees new request. I hope that

RE: Struts forward and redirect

2006-07-20 Thread George.Dinwiddie
Felix Khazin asked; > Hi all, > > I have a quick question: > > My struts-config.xml has a forward line such as: > > In my controller if I set an attribute such as: > > Request.setAttribute("test", "test string"); > Return (mapping.findForward("show")); > > This works fine and I am able to use

Struts forward and redirect

2006-07-20 Thread Felix Khazin
Hi all, I have a quick question: My struts-config.xml has a forward line such as: In my controller if I set an attribute such as: Request.setAttribute("test", "test string"); Return (mapping.findForward("show")); This works fine and I am able to use test in the view. B