url typo gives white/blank page instead of notfound page
Posted by
Ramon de Beijer-2 on
Mar 29, 2011; 3:14pm
URL: https://discuss.orbeon.com/url-typo-gives-white-blank-page-instead-of-notfound-page-tp3415164.html
Hi all,
I have a problem within the formrunner environment with not found
page
If you look at the Orbeon website there is the bookshelf application
and if you go to the url beneath it works fine:
http://www.orbeon.com/orbeon/fr/orbeon/bookshelf/new
But lets say you make a typo in the url, so u enter the url:
http://www.orbeon.com/orbeon/fr/orbeon/bookshelfX/new
It gives you a white page, so obviously it seems to do nothing with
the settings in the page-flow.xml in the fr subdirectory:
<page id="not-found" path-info="/not-found"
view="/apps/fr/not-found.xpl"/>
<not-found-handler page="not-found"/>
Am i overlooking something? How can I make it go to the not-found
page (probably some setting I am missing out somewhere)
Extra question:
I implemented my own persistence layer, so if I call
http://localhost:8080/orbeon/fr/orbeon/bookshelf/new
it goes to my own rest GET method, in that case I return the xhtml
representing the form and that gets rendered by the form runner (so
far so good),
but what should I return if the requested app/form is
non-existing...should i then return an empty string? or throw a
certain exception?
I hope someone has the answers to this.
regards Ramon
--
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
OW2 mailing lists service home page:
http://www.ow2.org/wws