| Author |
saveToken in forward action
|
James Quinton
Ranch Hand
Joined: Oct 02, 2006
Posts: 94
|
|
ForwardAction provides a simple approach if you just want a link being forwarded to a jsp page without actually writing an Action class. But how can you saveToken on that jsp since you don't have coding anymore? Does struts action-mapping tag provides this feature? I don't see it.
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
I'm afraid ForwardAction doesn't do anything with tokens. You'll have to write an Action class if you want to use the saveToken method.
|
Merrill
Consultant, Sima Solutions
|
 |
Brent Sterling
Ranch Hand
Joined: Feb 08, 2006
Posts: 948
|
|
You could easily write one action class that called saveToken and then returned "findForward("success")" (or whatever you wanted to do). You could then have multiple action mappings that used this same implementation. - Brent
|
 |
 |
|
|
subject: saveToken in forward action
|
|
|