Hi everyone,
After search all over the documentation I couldn't find a way to handle the 404 
error in my XMLUI interface. I was trying to handle it with sitemap.xmap 
(\dspace\webapps\xmlui\), I found this line:
<map:when test="not-found"><map:generate type="exception"/><map:transform 
src="exception2html.xslt"><map:parameter name="contextPath" 
value="{request:contextPath}"/><map:parameter name="pageTitle" value="Resource 
not found "/></map:transform><map:act type="locale"><map:transform 
type="i18n"><map:parameter name="locale" 
value="{locale}"/></map:transform></map:act><map:serialize type="xhtml" 
status-code="404"/></map:when>
I tried to change sth inside, and put this, in order to just redirect to the 
main page when error 404 appears:
<map:redirect-to uri="{request:contextPath}"/>
But the page doesn't works at all. Is there another way to handle this error??
Gracias y saludos!!:D                                     
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to