[tei-council] Linking issue in the Guidelines

David Sewell dsewell at virginia.edu
Thu Feb 27 13:37:51 EST 2014


Actually, there's another problem with this approach.

The current 404 page, ugly as it is, is coded so that it properly sends an HTTP 
404 response header. If it is replaced with a static HTML page, I believe that's 
going to send a 200 response header ("OK"). The human won't know/care, but 
anything automated that reaches a bad link won't know it's bad.

Given the underpinnings of OpenCMS, it's probably necessary to stick with the 
JSP coding of the error pages.


On Thu, 27 Feb 2014, Martin Holmes wrote:

> Try the attached page and see what it looks like.
>
> Cheers,
> Martin
>
> On 14-02-27 09:31 AM, David Sewell wrote:
>> I think that could be done by changing the OpenCMS type of the file from
>> "JSP" to "text file". The styling would need to be done by manually
>> copy-pasting from the generated HTML for a site page, because it
>> wouldn't inherit any of the OpenCMS templates. But it wouldn't be hard
>> to create something nicer than the existing one.
>> 
>> David
>> 
>> On Thu, 27 Feb 2014, Martin Holmes wrote:
>> 
>>> I wonder if we could just replace that JSP page with a static page?
>>> The only thing a 404 page tells you other than that something's not
>>> found is to echo back at you the URL you tried to access, which isn't
>>> very useful anyway, since it's in your browser address bar. A
>>> dead-simple HTML page based on our regular templates might work as a
>>> drop-in replacement.
>>> 
>>> I could be misunderstanding how the JSP calls work, though.
>>> 
>>> Cheers,
>>> Martin
>>> 
>>> On 14-02-27 06:32 AM, David Sewell wrote:
>>>> I have just taken a quick look to see what I can see in the CMS. I've
>>>> never attempted to do anything with those standard error templates.
>>>> 
>>>> In this case it looks like OpenCMS is using
>>>> /system/handler/handle404.html. Unfortunately, that is a JSP page that
>>>> consists pretty much entirely of calls to variables defined elsewhere,
>>>> so unless there's some modular way of changing the 404 behavior it's not
>>>> going to be trivially easy to change. I can't figure out where the
>>>> variables are defined, either.
>>>> 
>>>> If I have time later today I'll poke around more, but this is my last
>>>> day in the office before a week's vacation so I have a lot on my plate.
>>>> 
>>>> David
>>>> 
>>>> On Thu, 27 Feb 2014, Martin Holmes wrote:
>>>> 
>>>>> Among those of us who have access to the CMS, does anyone have access
>>>>> above /sites/default/? That's all I can see. I hate to bother Ian with
>>>>> this sort of thing, but if none of us can actually edit outside that
>>>>> area, we'll have to.
>>>>> 
>>>>> Cheers,
>>>>> Martin
>>>>> 
>>>>> On 14-02-27 03:43 AM, Sebastian Rahtz wrote:
>>>>>> 
>>>>>> On 26 Feb 2014, at 23:59, Martin Holmes <mholmes at uvic.ca> wrote:
>>>>>> 
>>>>>> 
>>>>>>> The question on whether the 404 page could be fixed up a bit still
>>>>>>> stands, though -- I don't have access high enough up the tree in the
>>>>>>> CMS to see where it's coming from, but if one of you does, could you
>>>>>>> fix the spelling error ("occured")? And could we also think about a
>>>>>>> page which matches the site design?
>>>>>> 
>>>>>> 
>>>>>> i agree, that 404 page makes us look unprofessional and disorganised.
>>>>>> it comes up much too readily….
>>>>>> --
>>>>>> Sebastian Rahtz
>>>>>> Director (Research) of Academic IT
>>>>>> University of Oxford IT Services
>>>>>> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>>>>>> 
>>>>>> Não sou nada.
>>>>>> Nunca serei nada.
>>>>>> Não posso querer ser nada.
>>>>>> À parte isso, tenho em mim todos os sonhos do mundo.
>>>>>> 
>>>>> --
>>>>> tei-council mailing list
>>>>> tei-council at lists.village.Virginia.EDU
>>>>> http://lists.village.Virginia.EDU/mailman/listinfo/tei-council
>>>>> 
>>>>> PLEASE NOTE: postings to this list are publicly archived
>>>> 
>>> 
>> 
>

-- 
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 400314, Charlottesville, VA 22904-4314 USA
Email: dsewell at virginia.edu   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/


More information about the tei-council mailing list