# HG changeset patch # User František Kučera <franta-hg@frantovo.cz> # Date 1234815694 -3600 # Node ID 5881614cdaefb49247d2db2762ab79b886ae1dbc # Parent 40312bcd7cd258eac8a05b4daf9b522ae24e952b Validní XHTML diff -r 40312bcd7cd2 -r 5881614cdaef java/hg-projekty/web/WEB-INF/cgi/hg --- a/java/hg-projekty/web/WEB-INF/cgi/hg Mon Feb 16 20:35:11 2009 +0100 +++ b/java/hg-projekty/web/WEB-INF/cgi/hg Mon Feb 16 21:21:34 2009 +0100 @@ -10,8 +10,8 @@ from mercurial import demandimport; demandimport.enable() # Uncomment to send python tracebacks to the browser if an error occurs: -import cgitb -cgitb.enable() +#import cgitb +#cgitb.enable() # If you'd like to serve pages with UTF-8 instead of your default # locale charset, you can do so by uncommenting the following lines. diff -r 40312bcd7cd2 -r 5881614cdaef java/hg-projekty/web/WEB-INF/web.xml --- a/java/hg-projekty/web/WEB-INF/web.xml Mon Feb 16 20:35:11 2009 +0100 +++ b/java/hg-projekty/web/WEB-INF/web.xml Mon Feb 16 21:21:34 2009 +0100 @@ -15,12 +15,10 @@ </servlet> <servlet-mapping> <servlet-name>cgi</servlet-name> - <url-pattern>/mercurial/*</url-pattern> + <url-pattern>/hg/*</url-pattern> </servlet-mapping> <session-config> - <session-timeout> - 30 - </session-timeout> + <session-timeout>30</session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> diff -r 40312bcd7cd2 -r 5881614cdaef java/hg-projekty/web/index.jsp --- a/java/hg-projekty/web/index.jsp Mon Feb 16 20:35:11 2009 +0100 +++ b/java/hg-projekty/web/index.jsp Mon Feb 16 21:21:34 2009 +0100 @@ -1,20 +1,16 @@ -<%-- - Document : index - Created on : 16.2.2009, 15:04:32 - Author : fiki ---%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<%@page contentType="text/html" pageEncoding="UTF-8"%> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" - "http://www.w3.org/TR/html4/loose.dtd"> - -<html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> <head> - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <meta http-equiv="content-language" content="cs"/> + <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/> <title>Projekty – Frantovo.cz</title> </head> <body> <h1>Projekty – Frantovo.cz</h1> <p>Úložiště zdrojových kódů – mercurial (Hg).</p> + <p><a href="/hg/hg/">Seznam úložišť</a>.</p> </body> </html>