| Author |
Logging off user (Struts)
|
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
I currently use an action to remove all data from the session, and everything works fine, but here is my problem: After logging the user out, can I send the browser to another URL like http://www.google.com or something to that nature, but not another page within the application.... Thanks Zak
|
 |
Shankar Narayana
Ranch Hand
Joined: Jan 08, 2003
Posts: 134
|
|
|
I think you can do that with response.sendRedirect !
|
"Failure is not when you fall down; its only when you fail to get up again."
|
 |
Zak Nixon
Ranch Hand
Joined: Sep 27, 2003
Posts: 126
|
|
Thats what I had, I just put a bad action forward object in my web.xml that blew everything up. Thanks anyway. Zak
|
 |
prabhat kumar
Ranch Hand
Joined: Apr 11, 2001
Posts: 114
|
|
Originally posted by Zak Nixon: After logging the user out, can I send the browser to another URL like http://www.google.com or something to that nature, but not another page within the application.... Thanks Zak[/QB]
You can do that like this in action code and struts-config Action code: struts-config: remember to set the redirect="true"
|
 |
 |
|
|
subject: Logging off user (Struts)
|
|
|