Tip:  i'd strongly recommend not doing this (we briefly tried a prototype,
and bailed on it because it created more problems than it solved).

Here are a few gotchas:

* You eliminate the possibility that the user can view your app with more
than one window open at a time.  They'll either get really confused as to
why the links are acting all screwy, or they'll figure it out, get mad, and
never come back.

* Reloading the page (unless you do some sort of "is this the same URL"
check) will cause duplicate items in the queue.  Going back will keep you on
the same page.  Bummer.

* The user may use the back button and the page might be retrieved from the
browser's cache.  Don't think you can easily defeat browser caching
either...IE 5.5 will give you fits.

chris

> -----Original Message-----
> From: Piper, James D CECOM SEC EPS
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 19, 2002 1:30 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Backtracking & Breadcrumbs
> 
> 
> 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