Hi Alvaro,
if you implement a solution, could you log your approach here:
https://jira.duraspace.org/browse/DS-1596
thanks!
Bram
--
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>
On Thu, Aug 8, 2013 at 9:27 AM, Jozef M. <[email protected]> wrote:
> Hi Alvaro,
>
> seems you know where to look so just very briefly. In Dspace 1.8.x try
> adding appropriate exceptions to sitemap.xmap
>
>
> <map:selector logger="sitemap.selector.exception" name="exception"
> src="org.apache.cocoon.selection.ExceptionSelector">
> <exception name="not-found"
> class="org.apache.cocoon.ResourceNotFoundException"/>
> <exception name="invalid-continuation"
> class="org.apache.cocoon.components.flow.InvalidContinuationException"/>
>
> and define appropriate transformers.
>
> However, you might still have problems with non existing "numeric" sites
> e.g., xmlui/123 which trigger a bit different path.
>
> Regards,
> Jozef Misutka
> ______________________
> Digital repository at UFAL
> Charles University in Prague
> http://ufal-point.mff.cuni.cz
>
>
>
> On Thu, Aug 8, 2013 at 12:35 AM, Álvaro Vargas Quezada
> <[email protected]>wrote:
>
>> 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-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-general
>>
>>
>
>
> ------------------------------------------------------------------------------
> 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-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-general
>
>
------------------------------------------------------------------------------
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-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-general