struts action quiestion

F

fera

Hello,

I have a short question concerning struts action context stack. I have 3
views. View A, B and C
To view C, I can get from view A, or B. In view C I have button "BACK",
Whenever I click BACK button, I want to go back to page that called view C
(A od B).
Is there any way to do it (remember calling view), or I have to implement my
own context stack mechanizm ?

thank you,

fera
 
W

Wendy Smoak

fera said:
I have a short question concerning struts action context stack. I have 3
views. View A, B and C
To view C, I can get from view A, or B. In view C I have button "BACK",
Whenever I click BACK button, I want to go back to page that called view C
(A od B).
Is there any way to do it (remember calling view), or I have to implement my
own context stack mechanizm ?

Everything in Struts is "forward" and it does not have the concept of "where
did I come from". You will need to keep track of where the user has been if
you want to enable 'breadcrumbs' or be able to link back to the prior page.

I haven't used it, but Struts Layout has breadcrumbs:
http://struts.application-servers.com/features/index.html

If your navigation is fairly simple, you can just set a request attribute in
the Action and use that to construct the 'back' link.

I encourage you come join us on the Struts User mailing list if you have
more questions:
http://struts.apache.org/mail.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top