Re: [HELP] Problem with redirect attribute of forward tag

2006-04-11 Thread Michael Jouravlev
On 4/10/06, Dave Newton [EMAIL PROTECTED] wrote:
 Pham Anh Tuan wrote:
  I got problem with redirect attribute in forward tag.
 
  after MyRegistration is processed, it register some values in request scope 
  (some messages to inform that Registration was successful), but after 
  redirecting to Summary action, all values which registered in request scope 
  is empty or null.
 
  I don't want user see url: /processMyForm in address bar, instead that, 
  user only see /summary.do on url :( ..
 

 Likely the easiest choice would be to put the information in session
 (and remove it later).

I would suggest to learn how redirection works first. I guess, it is
too late now ;-)

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



Re: [HELP] Problem with redirect attribute of forward tag

2006-04-11 Thread Pham Anh Tuan

why is it too late Michael ??? :(

if you know clearly how does redirection work, plz show me!

thanks

bowlkhin
- Original Message - 
From: Michael Jouravlev [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, April 11, 2006 2:01 PM
Subject: Re: [HELP] Problem with redirect attribute of forward tag


On 4/10/06, Dave Newton [EMAIL PROTECTED] wrote:

Pham Anh Tuan wrote:
 I got problem with redirect attribute in forward tag.

 after MyRegistration is processed, it register some values in request 
 scope (some messages to inform that Registration was successful), but 
 after redirecting to Summary action, all values which registered in 
 request scope is empty or null.


 I don't want user see url: /processMyForm in address bar, instead that, 
 user only see /summary.do on url :( ..



Likely the easiest choice would be to put the information in session
(and remove it later).


I would suggest to learn how redirection works first. I guess, it is
too late now ;-)

-
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: [HELP] Problem with redirect attribute of forward tag

2006-04-11 Thread Pham Anh Tuan
ooh ... I do validation in Action, so, okie, I will save all messages in a 
property of  form bean. is it okie :-?
- Original Message - 
From: Pham Anh Tuan [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, April 11, 2006 3:30 PM
Subject: Re: [HELP] Problem with redirect attribute of forward tag



why is it too late Michael ??? :(

if you know clearly how does redirection work, plz show me!

thanks

bowlkhin
- Original Message - 
From: Michael Jouravlev [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, April 11, 2006 2:01 PM
Subject: Re: [HELP] Problem with redirect attribute of forward tag


On 4/10/06, Dave Newton [EMAIL PROTECTED] wrote:

Pham Anh Tuan wrote:
 I got problem with redirect attribute in forward tag.

 after MyRegistration is processed, it register some values in request 
 scope (some messages to inform that Registration was successful), but 
 after redirecting to Summary action, all values which registered in 
 request scope is empty or null.


 I don't want user see url: /processMyForm in address bar, instead that, 
 user only see /summary.do on url :( ..



Likely the easiest choice would be to put the information in session
(and remove it later).


I would suggest to learn how redirection works first. I guess, it is
too late now ;-)

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






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



Re: [HELP] Problem with redirect attribute of forward tag

2006-04-10 Thread Dave Newton
Pham Anh Tuan wrote:
 I got problem with redirect attribute in forward tag.

 after MyRegistration is processed, it register some values in request scope 
 (some messages to inform that Registration was successful), but after 
 redirecting to Summary action, all values which registered in request scope 
 is empty or null.

 I don't want user see url: /processMyForm in address bar, instead that, user 
 only see /summary.do on url :( ..
   

Likely the easiest choice would be to put the information in session
(and remove it later).

Dave



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



Re: [HELP] Problem with redirect attribute of forward tag

2006-04-10 Thread Pham Anh Tuan

hiz ... thank you very much Dave :)
- Original Message - 
From: Dave Newton [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Monday, April 10, 2006 10:11 PM
Subject: Re: [HELP] Problem with redirect attribute of forward tag



Pham Anh Tuan wrote:

I got problem with redirect attribute in forward tag.

after MyRegistration is processed, it register some values in request 
scope (some messages to inform that Registration was successful), but 
after redirecting to Summary action, all values which registered in 
request scope is empty or null.


I don't want user see url: /processMyForm in address bar, instead that, 
user only see /summary.do on url :( ..




Likely the easiest choice would be to put the information in session
(and remove it later).

Dave



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



[HELP] Problem with redirect attribute of forward tag

2006-04-09 Thread Pham Anh Tuan
Hi all,

I got problem with redirect attribute in forward tag.

after MyRegistration is processed, it register some values in request scope 
(some messages to inform that Registration was successful), but after 
redirecting to Summary action, all values which registered in request scope is 
empty or null.

I don't want user see url: /processMyForm in address bar, instead that, user 
only see /summary.do on url :( ..

action name=myFormBean path=/processMyForm

type=com.myPack.MyRegistration scope=request

validate=false

forward name=success path=/summary.do redirect=true/

/action



action path=/summary

type=com.myPack.Summary scope=request

validate=false

forward name=success path=sumaryPage.jsp/

/action

help me!

thanks in advance! :| 

bowlkhin