I'm still new at this, but can you have each of your [Page ? Actions] add a
uri to a linked list that gets stored in session.  Then your [Page X Action]
could implement the perform() method to return 'new
ActionForward(myLastURI)' where myLastURI is the String of the uri read out
of the current bottom of your linked list (This means perform() will not be
using mapping.findForward() to get the return value)?  You could also have
your JSPs use the URIs in the linkedlist to generate a set of links to each
of the past pages visited.

- Jim

-----Original Message-----
From: Howard Miller [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 4:07 AM
To: '[EMAIL PROTECTED]'
Subject: Backtracking & Breadcrumbs


Hi,

Two slightly different yet related questions.

Does anybody have an elegant way to "forward" to the page that called the
page that has just been processed arbitrarily.

A picture being worth a thousand words

[Page ?]
|
[Page ? Action]
|
[Page X]
| 
[Page X Action]
|
[Page ?]

The point being that [Page ?] can be any page, as almost all my pages will
have a link to [Page X]. Page X's action needs to forward back to [Page ?]
whatever that might be.

...And leading on from that. I want to have a trail of "breadcrumbs" at the
top of my page, so when the user is on [Page X], the will see...

[Home][Main Menu][Page ?][PageX]

all but [Page X] being links to the appropriate page, so they can (a)
shortcut back there and (b) they have sme sense of where they are (as my
navigation is bit wild). 

Any offers of a nice way to do this in Struts

Cheers...

Howard Miller

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

Reply via email to