Yes, I'd come up with something similar myself. It just seemed a bit fussy.

I hate writing code that involves remembering to do some operation on *every* page 
or it doesn't work - because I *always* forget. 

I was kind of hoping for something at a "higher level", that once set up would just 
work. I guess I could override the Action class, but I'm not sure how to go about 
doing 
it that way.

Thanks anyway,

Howard

On 19 Sep 2002 at 14:30, Piper, James D CECOM SEC EPS wrote:

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



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

Reply via email to