cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart Thorne" <Stuart.Tho...@dna.co.uk>
Subject RE: Expired continuations
Date Mon, 12 Sep 2005 11:09:32 GMT
Hi Garry,


In the sitemap.xmap, within your map:selectors, you could add the
following 

<exception
class="org.apache.cocoon.components.flow.InvalidContinuationException"
name="invalid-continuation" />

Then where you're doing error-handling in the sitemap, e.g.

<map:handle-errors>
	<map:select type="exception">
		<map:when test="invalid-continuation">
		Generate or re-direct to a pre-prepared error page
</map:when>
		<map:when ...other exceptions...>
		</map:when>
	</map:select>
</map:handle-errors>


you can provide something for users with invalid continuations, e.g.
generate a 'session expired' page or something similar.

Thanks,


Stu


-----Original Message-----
From: Gerry Kaplan [mailto:gkaplan@kaplansoftware.com] 
Sent: 11 September 2005 16:59
To: users@cocoon.apache.org
Subject: Expired continuations

Is there a document or an example somewhere that shows how to handle an
expired continuation. If the continuation expires and the user tries to
continue their work, they get an ugly error page. How can I capture that
error? Is it in the flow or in a sitemap?

Thanks!!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message