Adam Hardy wrote:
> In the last couple of days someone said that they separated the two
> flows using GET and POST - or at least I thought so.
>
> It sounded interesting but on looking at the struts-config DTD, there
> seems no way to do this.
>
> I can't find the thread in the archive now. Did I misread that
> previous posting?
Nope, but you might have misunderstood: it's about as far from magic as
one can get.
Everything was handled with a base Action pseudocoded (very) roughly as
follows. Mind you, this isn't how I would do things now, but it served
its purpose for a pretty darn long time (just like Struts! :)
execute
if isError(handleSetup(request_, event_))
return setupError
if isPost(request)
return executeGet
if isError(validateForm)
return validationError
return executePost
There were various over-ridables for setting up the form differently (if
necessary) for GET/POST, blah blah blah.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]