> -----Original Message-----
> From: Jeff Smith [mailto:[EMAIL PROTECTED]
> Thanks, I think that solves my immediate problem. But it sure 
> would be nice
> if struts had a built-in mechanism for supporting these kinds 
> of sequences.

I think I raised the same issue Many Moons Ago, claimed I'd do something
about it, and promptly got laid off from my day job, or wandered off into
the weeds, or something.  Maybe I'll blow the dust off whatever's lying
around in this regard.  I know I've got it around here *somewhere*...
{sounds of glass breaking, large metal objects flying about}

The larger problem, of course, is many numbers of these types of
sequences--what I like to think of as how the web handles dialog boxes.  In
a dialog box metaphor, in a regular desktop application, you're staring at
some screen, a dialog box or wizard pops up, you plow through it, and when
it is dismissed, you're staring at the same screen you were before the whole
thing began.  With the web (leaving aside various stupid javascript and CSS
tricks), you need to somehow store these "savepoints"--mark points in the
flow that represent the "screen" you were staring at before the current
sequence/dialog box-ish thing/wizard started and "got in front" of it.  That
way, when you "dismiss" the dialog box, or complete the sequence, you are
returned back to the page/screen you were looking at previously.

I, like lots of other people, have usually handled this in a one-off sort of
way, where you know in advance how many of these sequences you're likely to
have, and store something slightly hackish, like the "fromUrl" or the
"originalPage" or some such in the session.  It's always struck me as kind
of nasty, but quick, dirty, and usually OK to do in the short term, which is
all they ever give you to work with anyhow.  ;-)

But on several projects now, that hack has ballooned somewhat out of control
as we'd really like to reuse a sequence in several positions in the
webapp--sometimes within another sequence.  So you always want to return to
the last savepoint on the "stack", as it were.

Hmm.  Now I'm interested again.  I'll be back with whatever I find.

Cheers,
Laird

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

Reply via email to