Force a not-found?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Force a not-found?

Jay Klehr
Is there a way to force a Not Found event that will make use of the not-found handler?
 
My particular use case makes use of the perl5 matcher to determine which content to load, but if that content can't be found, I'd like to be able to send something that triggers the not-found to load instead of a page with empty content.
 
Ideally this should happen from the XPL file that is looking for the content (from a database), but if anyone knows of another way to handle this, I'm all ears. :)
 
Thanks,
 
Jay


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Force a not-found?

Ryan Puddephatt
Jay,
in your page-flow you can forward to it
 
<page id="some-page">
    <action action="xpl-to-check-if-exists.xpl">
        <result when="/not-exist = 'true' page="not-found-page-id"/>
    </action>
</page>
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


From: Jay Klehr [mailto:[hidden email]]
Sent: 08 November 2006 22:16
To: [hidden email]
Subject: [ops-users] Force a not-found?

Is there a way to force a Not Found event that will make use of the not-found handler?
 
My particular use case makes use of the perl5 matcher to determine which content to load, but if that content can't be found, I'd like to be able to send something that triggers the not-found to load instead of a page with empty content.
 
Ideally this should happen from the XPL file that is looking for the content (from a database), but if anyone knows of another way to handle this, I'm all ears. :)
 
Thanks,
 
Jay


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws